Index: content/browser/plugin_service_impl.cc |
diff --git a/content/browser/plugin_service_impl.cc b/content/browser/plugin_service_impl.cc |
index 2cd2eb16f94dd83f7952e49e1f4fe5ec459f2db5..10ccb475db977f4fa8f6e900621d7b4a9cd44386 100644 |
--- a/content/browser/plugin_service_impl.cc |
+++ b/content/browser/plugin_service_impl.cc |
@@ -147,6 +147,21 @@ void PluginServiceImpl::Init() { |
RegisterPepperPlugins(); |
+ // Register MIME type to support WebView component. |
Charlie Reis
2013/01/17 19:44:54
This needs to be behind the --site-per-process fla
nasko
2013/01/17 22:19:13
Done.
|
+ // TODO(irobert): WebView refused to load the WebUI object such as |
+ // 'chrome://extensions/' because it violates the Content Security Policy. |
Charlie Reis
2013/01/17 19:44:54
We can remove this TODO.
nasko
2013/01/17 22:19:13
Done.
|
+ webkit::WebPluginInfo webview_plugin( |
+ ASCIIToUTF16("WebView Tag"), |
+ FilePath(FILE_PATH_LITERAL("")), |
+ ASCIIToUTF16("1.2.3.4"), |
+ ASCIIToUTF16("Browser Plugin.")); |
+ webview_plugin.type = webkit::WebPluginInfo::PLUGIN_TYPE_NPAPI; |
+ webkit::WebPluginMimeType webview_plugin_mime_type; |
+ webview_plugin_mime_type.mime_type = "application/browser-plugin"; |
+ webview_plugin_mime_type.file_extensions.push_back("*"); |
+ webview_plugin.mime_types.push_back(webview_plugin_mime_type); |
+ RegisterInternalPlugin(webview_plugin, true); |
+ |
GetContentClient()->AddNPAPIPlugins(plugin_list_); |
// Load any specified on the command line as well. |