Remove WebContext::sharedProcessContext()
authorweinig@apple.com <weinig@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 9 Dec 2013 05:44:17 +0000 (05:44 +0000)
committerweinig@apple.com <weinig@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 9 Dec 2013 05:44:17 +0000 (05:44 +0000)
https://bugs.webkit.org/show_bug.cgi?id=125437

Reviewed by Dan Bernstein.

* UIProcess/API/ios/WKGeolocationProviderIOS.mm:
* UIProcess/WebContext.cpp:
* UIProcess/WebContext.h:

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

Source/WebKit2/ChangeLog
Source/WebKit2/UIProcess/API/ios/WKGeolocationProviderIOS.mm
Source/WebKit2/UIProcess/WebContext.cpp
Source/WebKit2/UIProcess/WebContext.h

index 0d04863..3ee0b63 100644 (file)
@@ -1,5 +1,16 @@
 2013-12-08  Sam Weinig  <sam@webkit.org>
 
+        Remove WebContext::sharedProcessContext()
+        https://bugs.webkit.org/show_bug.cgi?id=125437
+
+        Reviewed by Dan Bernstein.
+
+        * UIProcess/API/ios/WKGeolocationProviderIOS.mm:
+        * UIProcess/WebContext.cpp:
+        * UIProcess/WebContext.h:
+
+2013-12-08  Sam Weinig  <sam@webkit.org>
+
         Fix the iOS build.
 
         * UIProcess/API/ios/PageClientImplIOS.h:
index a106267..8e2e5f5 100644 (file)
@@ -139,7 +139,8 @@ struct GeolocationRequestData {
 -(id)init
 {
     ASSERT_NOT_REACHED();
-    return [self initWithContext:(WebContext::sharedProcessContext())];
+    [self release];
+    return nil;
 }
 
 -(id)initWithContext:(WebContext*)context
index a1d6ffb..ca6b8a4 100644 (file)
@@ -123,14 +123,6 @@ const Vector<WebContext*>& WebContext::allContexts()
     return contexts();
 }
 
-#if PLATFORM(IOS)
-WebContext* WebContext::sharedProcessContext()
-{
-    static WKContextRef sharedContextRef = WKContextCreate();
-    return toImpl(sharedContextRef);
-}
-#endif
-
 WebContext::WebContext(const String& injectedBundlePath)
     : m_processModel(ProcessModelSharedSecondaryProcess)
     , m_webProcessCountLimit(UINT_MAX)
index a0edb49..af7bc07 100644 (file)
@@ -101,10 +101,6 @@ public:
     static PassRefPtr<WebContext> create(const String& injectedBundlePath);
     virtual ~WebContext();
 
-#if PLATFORM(IOS)
-    static WebContext *sharedProcessContext();
-#endif
-
     static const Vector<WebContext*>& allContexts();
 
     template <typename T>