Title: [196480] trunk/Source/WebKit2
Revision
196480
Author
[email protected]
Date
2016-02-12 09:24:13 -0800 (Fri, 12 Feb 2016)

Log Message

Get rid of NetscapePluginModule::createPluginMIMETypesPreferences
https://bugs.webkit.org/show_bug.cgi?id=154173

Reviewed by Dan Bernstein.

* Shared/Plugins/Netscape/NetscapePluginModule.h:
* Shared/Plugins/Netscape/mac/NetscapePluginModuleMac.mm:
(WebKit::NetscapePluginModule::createPluginMIMETypesPreferences): Deleted.

Modified Paths

Diff

Modified: trunk/Source/WebKit2/ChangeLog (196479 => 196480)


--- trunk/Source/WebKit2/ChangeLog	2016-02-12 17:23:33 UTC (rev 196479)
+++ trunk/Source/WebKit2/ChangeLog	2016-02-12 17:24:13 UTC (rev 196480)
@@ -1,3 +1,14 @@
+2016-02-12  Anders Carlsson  <[email protected]>
+
+        Get rid of NetscapePluginModule::createPluginMIMETypesPreferences
+        https://bugs.webkit.org/show_bug.cgi?id=154173
+
+        Reviewed by Dan Bernstein.
+
+        * Shared/Plugins/Netscape/NetscapePluginModule.h:
+        * Shared/Plugins/Netscape/mac/NetscapePluginModuleMac.mm:
+        (WebKit::NetscapePluginModule::createPluginMIMETypesPreferences): Deleted.
+
 2016-02-11  Anders Carlsson  <[email protected]>
 
         Remove legacy processes from WebKit2

Modified: trunk/Source/WebKit2/Shared/Plugins/Netscape/NetscapePluginModule.h (196479 => 196480)


--- trunk/Source/WebKit2/Shared/Plugins/Netscape/NetscapePluginModule.h	2016-02-12 17:23:33 UTC (rev 196479)
+++ trunk/Source/WebKit2/Shared/Plugins/Netscape/NetscapePluginModule.h	2016-02-12 17:24:13 UTC (rev 196480)
@@ -65,10 +65,6 @@
 
     Module* module() const { return m_module.get(); }
 
-#if PLUGIN_ARCHITECTURE(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED <= 101000
-    static bool createPluginMIMETypesPreferences(const String& pluginPath);
-#endif
-
 #if PLUGIN_ARCHITECTURE(X11)
     static bool scanPlugin(const String& pluginPath);
     static void parseMIMEDescription(const String& mimeDescription, Vector<WebCore::MimeClassInfo>& result);

Modified: trunk/Source/WebKit2/Shared/Plugins/Netscape/mac/NetscapePluginModuleMac.mm (196479 => 196480)


--- trunk/Source/WebKit2/Shared/Plugins/Netscape/mac/NetscapePluginModuleMac.mm	2016-02-12 17:23:33 UTC (rev 196479)
+++ trunk/Source/WebKit2/Shared/Plugins/Netscape/mac/NetscapePluginModuleMac.mm	2016-02-12 17:24:13 UTC (rev 196480)
@@ -276,27 +276,6 @@
     return true;
 }
 
-#if __MAC_OS_X_VERSION_MIN_REQUIRED <= 101000
-bool NetscapePluginModule::createPluginMIMETypesPreferences(const String& pluginPath)
-{
-    RetainPtr<CFURLRef> bundleURL = adoptCF(CFURLCreateWithFileSystemPath(kCFAllocatorDefault, pluginPath.createCFString().get(), kCFURLPOSIXPathStyle, false));
-    
-    RetainPtr<CFBundleRef> bundle = adoptCF(CFBundleCreate(kCFAllocatorDefault, bundleURL.get()));
-    if (!bundle)
-        return false;
-
-    if (!CFBundleLoadExecutable(bundle.get()))
-        return false;
-
-    void (*createPluginMIMETypesPreferences)(void) = reinterpret_cast<void (*)(void)>(CFBundleGetFunctionPointerForName(bundle.get(), CFSTR("BP_CreatePluginMIMETypesPreferences")));
-    if (!createPluginMIMETypesPreferences)
-        return false;
-
-    createPluginMIMETypesPreferences();
-    return true;
-}
-#endif
-
 // FIXME: This doesn't need to be platform-specific.
 class PluginVersion {
 public:
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to