Try to fix the 32-bit build
authortimothy_horton@apple.com <timothy_horton@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 14 Nov 2015 00:56:22 +0000 (00:56 +0000)
committertimothy_horton@apple.com <timothy_horton@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 14 Nov 2015 00:56:22 +0000 (00:56 +0000)
* UIProcess/mac/WebContextMenuProxyMac.mm:
(WebKit::WebContextMenuProxyMac::createShareMenuItem):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@192452 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit2/ChangeLog
Source/WebKit2/UIProcess/mac/WebContextMenuProxyMac.mm

index 072c462..f287bad 100644 (file)
@@ -3,6 +3,13 @@
         Try to fix the 32-bit build
 
         * UIProcess/mac/WebContextMenuProxyMac.mm:
         Try to fix the 32-bit build
 
         * UIProcess/mac/WebContextMenuProxyMac.mm:
+        (WebKit::WebContextMenuProxyMac::createShareMenuItem):
+
+2015-11-13  Timothy Horton  <timothy_horton@apple.com>
+
+        Try to fix the 32-bit build
+
+        * UIProcess/mac/WebContextMenuProxyMac.mm:
         (WebKit::menuItemIdentifier):
 
 2015-11-13  Wenson Hsieh  <wenson_hsieh@apple.com>
         (WebKit::menuItemIdentifier):
 
 2015-11-13  Wenson Hsieh  <wenson_hsieh@apple.com>
index e8ec889..1a72126 100644 (file)
@@ -369,7 +369,9 @@ RetainPtr<NSMenuItem> WebContextMenuProxyMac::createShareMenuItem()
     // Setting the picker lets the delegate retain it to keep it alive, but this picker is kept alive by the menu item.
     [[WKSharingServicePickerDelegate sharedSharingServicePickerDelegate] setPicker:nil];
 
     // Setting the picker lets the delegate retain it to keep it alive, but this picker is kept alive by the menu item.
     [[WKSharingServicePickerDelegate sharedSharingServicePickerDelegate] setPicker:nil];
 
+#if WK_API_ENABLED
     [item setIdentifier:_WKMenuItemIdentifierShareMenu];
     [item setIdentifier:_WKMenuItemIdentifierShareMenu];
+#endif
 
     return item;
 }
 
     return item;
 }