Bug 110544

Summary: Use CFNotificationCenter instead of NSNotificationCenter for SharedTimerIOS
Product: WebKit Reporter: Benjamin Poulain <benjamin>
Component: New BugsAssignee: Benjamin Poulain <benjamin>
Status: RESOLVED FIXED    
Severity: Normal CC: dbates, ddkilzer
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch dbates: review+

Benjamin Poulain
Reported 2013-02-21 19:01:41 PST
Use CFNotificationCenter instead of NSNotificationCenter for SharedTimerIOS
Attachments
Patch (3.25 KB, patch)
2013-02-21 19:04 PST, Benjamin Poulain
dbates: review+
Benjamin Poulain
Comment 1 2013-02-21 19:04:48 PST
Daniel Bates
Comment 2 2013-02-22 11:52:23 PST
Comment on attachment 189660 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=189660&action=review This patch looks straightforward to me. You may want to consider adding a remark that we never remove the observer for notification UIApplicationDidBecomeActiveNotification. (This behavior is consistent with the behavior we had when we used WebCoreResumeNotifierIOS). If you are looking for a more thorough review then feel free to have someone more familiar with {CF, NS}NotificationCenter review this patch. > Source/WebCore/ChangeLog:8 > + Previously, we were instanciating the Obj-C object WebCoreResumeNotifierIOS Nit: instanciating => instantiating > Source/WebCore/ChangeLog:12 > + without the itermediary object. Nit: itermediary => intermediary > Source/WebCore/platform/ios/SharedTimerIOS.mm:38 > +static void applicationDidBecomeActive(CFNotificationCenterRef, void*, CFStringRef, const void *, CFDictionaryRef) Nit: "void *" => "void*" Notice that lack of a space character between "void" and the '*'.
Benjamin Poulain
Comment 3 2013-02-22 14:17:20 PST
Benjamin Poulain
Comment 4 2013-02-22 14:17:49 PST
Thank you for the review.
Note You need to log in before you can comment on or make changes to this bug.