[Cocoa] Remove webProcessPlugInInitialize: from the WKWebProcessPlugIn protocol
authorweinig@apple.com <weinig@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 8 Dec 2013 18:57:01 +0000 (18:57 +0000)
committerweinig@apple.com <weinig@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 8 Dec 2013 18:57:01 +0000 (18:57 +0000)
https://bugs.webkit.org/show_bug.cgi?id=125405

Reviewed by Dan Bernstein.

* WebProcess/InjectedBundle/API/mac/WKWebProcessPlugIn.h:
* WebProcess/InjectedBundle/mac/InjectedBundleMac.mm:
(WebKit::InjectedBundle::load):

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

Source/WebKit2/ChangeLog
Source/WebKit2/WebProcess/InjectedBundle/API/mac/WKWebProcessPlugIn.h
Source/WebKit2/WebProcess/InjectedBundle/mac/InjectedBundleMac.mm

index 51e8f0e..5617576 100644 (file)
@@ -1,3 +1,14 @@
+2013-12-07  Sam Weinig  <sam@webkit.org>
+
+        [Cocoa] Remove webProcessPlugInInitialize: from the WKWebProcessPlugIn protocol
+        https://bugs.webkit.org/show_bug.cgi?id=125405
+
+        Reviewed by Dan Bernstein.
+
+        * WebProcess/InjectedBundle/API/mac/WKWebProcessPlugIn.h:
+        * WebProcess/InjectedBundle/mac/InjectedBundleMac.mm:
+        (WebKit::InjectedBundle::load):
+
 2013-12-08  Brian Holt  <brian.holt@samsung.com>
 
         [WK2] Guard include of SecItemShim.h with ENABLE(SEC_ITEM_SHIM)
index b8967b2..62e41b1 100644 (file)
@@ -39,9 +39,6 @@
 - (void)webProcessPlugIn:(WKWebProcessPlugInController *)plugInController initializeWithObject:(id)initializationObject;
 - (void)webProcessPlugIn:(WKWebProcessPlugInController *)plugInController didCreateBrowserContextController:(WKWebProcessPlugInBrowserContextController *)browserContextController;
 - (void)webProcessPlugIn:(WKWebProcessPlugInController *)plugInController willDestroyBrowserContextController:(WKWebProcessPlugInBrowserContextController *)browserContextController;
-
-- (void)webProcessPlugInInitialize:(WKWebProcessPlugInController *)plugInController DEPRECATED_ATTRIBUTE;
-
 @end
 
 WK_API_CLASS
index 23910a7..adbc3b0 100644 (file)
@@ -112,11 +112,6 @@ bool InjectedBundle::load(API::Object* initializationUserData)
         if (initializationUserData && initializationUserData->type() == API::Object::Type::ObjCObjectGraph)
             objCInitializationUserData = static_cast<ObjCObjectGraph*>(initializationUserData)->rootObject();
         [instance webProcessPlugIn:plugInController initializeWithObject:objCInitializationUserData.get()];
-    } else if ([instance respondsToSelector:@selector(webProcessPlugInInitialize:)]) {
-#pragma clang diagnostic push
-#pragma clang diagnostic ignored "-Wdeprecated-declarations"
-        [instance webProcessPlugInInitialize:plugInController];
-#pragma clang diagnostic pop
     }
 
     return true;