32-bit MiniBrowser doesn't build
authorweinig@apple.com <weinig@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 9 Dec 2013 04:51:32 +0000 (04:51 +0000)
committerweinig@apple.com <weinig@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 9 Dec 2013 04:51:32 +0000 (04:51 +0000)
https://bugs.webkit.org/show_bug.cgi?id=125420

Reviewed by Dan Bernstein.

* MiniBrowser/mac/AppDelegate.h:
* MiniBrowser/mac/AppDelegate.m:
(-[BrowserAppDelegate init]):
(-[BrowserAppDelegate applicationWillTerminate:]):

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

Tools/ChangeLog
Tools/MiniBrowser/mac/AppDelegate.h
Tools/MiniBrowser/mac/AppDelegate.m

index a2bb87a..874e992 100644 (file)
@@ -1,3 +1,15 @@
+2013-12-08  Sam Weinig  <sam@webkit.org>
+
+        32-bit MiniBrowser doesn't build
+        https://bugs.webkit.org/show_bug.cgi?id=125420
+
+        Reviewed by Dan Bernstein.
+
+        * MiniBrowser/mac/AppDelegate.h:
+        * MiniBrowser/mac/AppDelegate.m:
+        (-[BrowserAppDelegate init]):
+        (-[BrowserAppDelegate applicationWillTerminate:]):
+
 2013-12-08  Brian Holt  <brian.holt@samsung.com>
 
         [WK2] Add ENABLE_NETWORK_PROCESS flag
index 8d83afa..7d14a51 100644 (file)
  * THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+#import <WebKit2/WebKit2.h>
+
 @interface BrowserAppDelegate : NSObject <NSApplicationDelegate> {
+#if WK_API_ENABLED
     WKProcessGroup *_processGroup;
     WKBrowsingContextGroup *_browsingContextGroup;
-
+#endif
     NSMutableSet *_browserWindows;
 }
 
index 1445379..5681761 100644 (file)
@@ -45,8 +45,10 @@ enum {
 {
     self = [super init];
     if (self) {
+#if WK_API_ENABLED
         _processGroup = [[WKProcessGroup alloc] init];
         _browsingContextGroup = [[WKBrowsingContextGroup alloc] initWithIdentifier:@"MiniBrowser"];
+#endif
         _browserWindows = [[NSMutableSet alloc] init];
     }
 
@@ -92,11 +94,13 @@ enum {
         [controller applicationTerminating];
     }
 
+#if WK_API_ENABLED
     [_processGroup release];
     _processGroup = nil;
 
     [_browsingContextGroup release];
     _browsingContextGroup = nil;
+#endif
 }
 
 - (BrowserWindowController *)frontmostBrowserWindowController