Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1689)

Unified Diff: content/browser/plugin_service_impl.cc

Issue 53153008: Remove webview-based behavior from --site-per-process flag. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Initial patch. Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/loader/resource_loader.cc ('k') | content/public/common/content_switches.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/plugin_service_impl.cc
diff --git a/content/browser/plugin_service_impl.cc b/content/browser/plugin_service_impl.cc
index b46af4fbeffc9dd6fde8c90d6e737f218e27deff..1e4083d8a094a5d3b42fca3d0d31a9204273a00d 100644
--- a/content/browser/plugin_service_impl.cc
+++ b/content/browser/plugin_service_impl.cc
@@ -171,25 +171,8 @@ void PluginServiceImpl::Init() {
RegisterPepperPlugins();
- // The --site-per-process flag enables an out-of-process iframes
- // prototype, which uses WebView for rendering. We need to register the MIME
- // type we use with the plugin, so the renderer can instantiate it.
- const CommandLine* command_line = CommandLine::ForCurrentProcess();
- if (command_line->HasSwitch(switches::kSitePerProcess)) {
- WebPluginInfo webview_plugin(
- ASCIIToUTF16("WebView Tag"),
- base::FilePath(),
- ASCIIToUTF16("1.2.3.4"),
- ASCIIToUTF16("Browser Plugin."));
- webview_plugin.type = WebPluginInfo::PLUGIN_TYPE_NPAPI;
- 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);
- }
-
// Load any specified on the command line as well.
+ const CommandLine* command_line = CommandLine::ForCurrentProcess();
base::FilePath path =
command_line->GetSwitchValuePath(switches::kLoadPlugin);
if (!path.empty())
« no previous file with comments | « content/browser/loader/resource_loader.cc ('k') | content/public/common/content_switches.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698