From: timothy_horton@apple.com Date: Sat, 9 Aug 2014 01:12:28 +0000 (+0000) Subject: Build fix for 32-bit. X-Git-Url: https://git.webkit.org/?p=WebKit-https.git;a=commitdiff_plain;h=6c223595d6c6737044242b0c3bf9fdd530c52b01 Build fix for 32-bit. * UIProcess/mac/ServicesController.mm: (WebKit::ServicesController::ServicesController): Don't dynamically refresh services in 32-bit apps. It's not possible to write a 32-bit app with the Modern API, so this doesn't matter. git-svn-id: https://svn.webkit.org/repository/webkit/trunk@172369 268f45cc-cd09-0410-ab3c-d52691b4dbfc --- diff --git a/Source/WebKit2/ChangeLog b/Source/WebKit2/ChangeLog index d00e1b1614f8..5399ef044331 100644 --- a/Source/WebKit2/ChangeLog +++ b/Source/WebKit2/ChangeLog @@ -1,3 +1,12 @@ +2014-08-08 Tim Horton + + Build fix for 32-bit. + + * UIProcess/mac/ServicesController.mm: + (WebKit::ServicesController::ServicesController): + Don't dynamically refresh services in 32-bit apps. It's not possible + to write a 32-bit app with the Modern API, so this doesn't matter. + 2014-08-08 Tim Horton [mac] Dynamically update serviceability when the set of services changes diff --git a/Source/WebKit2/UIProcess/mac/ServicesController.mm b/Source/WebKit2/UIProcess/mac/ServicesController.mm index bb158e904713..0d36f44f6b5f 100644 --- a/Source/WebKit2/UIProcess/mac/ServicesController.mm +++ b/Source/WebKit2/UIProcess/mac/ServicesController.mm @@ -49,6 +49,7 @@ typedef enum { - (NSMenu *)menu; @end +#ifdef __LP64__ #if __has_include() #import #else @@ -59,6 +60,7 @@ typedef enum { @interface NSExtension (Details) + (id)beginMatchingExtensionsWithAttributes:(NSDictionary *)attributes completion:(void (^)(NSArray *matchingExtensions, NSError *error))handler; @end +#endif // __LP64__ namespace WebKit { @@ -77,6 +79,7 @@ ServicesController::ServicesController() { refreshExistingServices(); +#ifdef __LP64__ auto refreshCallback = [](NSArray *, NSError *) { // We coalese refreshes from the notification callbacks because they can come in small batches. ServicesController::shared().refreshExistingServices(false); @@ -86,6 +89,7 @@ ServicesController::ServicesController() m_extensionWatcher = [NSExtension beginMatchingExtensionsWithAttributes:extensionAttributes completion:refreshCallback]; auto uiExtensionAttributes = @{ @"NSExtensionPointName" : @"com.apple.ui-services" }; m_uiExtensionWatcher = [NSExtension beginMatchingExtensionsWithAttributes:uiExtensionAttributes completion:refreshCallback]; +#endif // __LP64__ } void ServicesController::refreshExistingServices(bool refreshImmediately)