Commit ae7b974f authored by zork@chromium.org's avatar zork@chromium.org

Remove kEnableBrowserPluginForAllViewTypes flag

BUG=362796

Review URL: https://codereview.chromium.org/236073004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@266783 0039d316-1c4b-4281-b951-d872f2087c98
parent 67eab64f
...@@ -840,9 +840,7 @@ void ChromeContentBrowserClient::GuestWebContentsCreated( ...@@ -840,9 +840,7 @@ void ChromeContentBrowserClient::GuestWebContentsCreated(
/// TODO(fsamuel): In the future, certain types of GuestViews won't require /// TODO(fsamuel): In the future, certain types of GuestViews won't require
// extension bindings. At that point, we should clear |extension_id| instead // extension bindings. At that point, we should clear |extension_id| instead
// of exiting early. // of exiting early.
if (!service->GetExtensionById(extension_id, false) && if (!service->GetExtensionById(extension_id, false)) {
!CommandLine::ForCurrentProcess()->HasSwitch(
switches::kEnableBrowserPluginForAllViewTypes)) {
NOTREACHED(); NOTREACHED();
return; return;
} }
......
...@@ -47,7 +47,6 @@ void ShowBadFlagsPrompt(Browser* browser) { ...@@ -47,7 +47,6 @@ void ShowBadFlagsPrompt(Browser* browser) {
switches::kSingleProcess, switches::kSingleProcess,
// These flags disable or undermine the Same Origin Policy. // These flags disable or undermine the Same Origin Policy.
switches::kEnableBrowserPluginForAllViewTypes,
switches::kTrustedSpdyProxy, switches::kTrustedSpdyProxy,
translate::switches::kTranslateSecurityOrigin, translate::switches::kTranslateSecurityOrigin,
......
...@@ -474,9 +474,6 @@ bool ChromeContentRendererClient::OverrideCreatePlugin( ...@@ -474,9 +474,6 @@ bool ChromeContentRendererClient::OverrideCreatePlugin(
WebPlugin** plugin) { WebPlugin** plugin) {
std::string orig_mime_type = params.mimeType.utf8(); std::string orig_mime_type = params.mimeType.utf8();
if (orig_mime_type == content::kBrowserPluginMimeType) { if (orig_mime_type == content::kBrowserPluginMimeType) {
if (CommandLine::ForCurrentProcess()->HasSwitch(
switches::kEnableBrowserPluginForAllViewTypes))
return false;
WebDocument document = frame->document(); WebDocument document = frame->document();
const Extension* extension = const Extension* extension =
GetExtensionByOrigin(document.securityOrigin()); GetExtensionByOrigin(document.securityOrigin());
...@@ -1372,10 +1369,6 @@ ChromeContentRendererClient::OverrideSpeechSynthesizer( ...@@ -1372,10 +1369,6 @@ ChromeContentRendererClient::OverrideSpeechSynthesizer(
bool ChromeContentRendererClient::AllowBrowserPlugin( bool ChromeContentRendererClient::AllowBrowserPlugin(
blink::WebPluginContainer* container) { blink::WebPluginContainer* container) {
if (CommandLine::ForCurrentProcess()->HasSwitch(
switches::kEnableBrowserPluginForAllViewTypes))
return true;
// If this |BrowserPlugin| <object> in the |container| is not inside a // If this |BrowserPlugin| <object> in the |container| is not inside a
// <webview>/<adview> shadowHost, we disable instantiating this plugin. This // <webview>/<adview> shadowHost, we disable instantiating this plugin. This
// is to discourage and prevent developers from accidentally attaching // is to discourage and prevent developers from accidentally attaching
......
...@@ -245,11 +245,6 @@ class BrowserPluginHostTest : public ContentBrowserTest { ...@@ -245,11 +245,6 @@ class BrowserPluginHostTest : public ContentBrowserTest {
ContentBrowserTest::TearDown(); ContentBrowserTest::TearDown();
} }
virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE {
// Enable browser plugin in content_shell for running test.
command_line->AppendSwitch(switches::kEnableBrowserPluginForAllViewTypes);
}
static void SimulateSpaceKeyPress(WebContents* web_contents) { static void SimulateSpaceKeyPress(WebContents* web_contents) {
SimulateKeyPress(web_contents, SimulateKeyPress(web_contents,
ui::VKEY_SPACE, ui::VKEY_SPACE,
......
...@@ -1055,7 +1055,6 @@ void RenderProcessHostImpl::PropagateBrowserCommandLineToRenderer( ...@@ -1055,7 +1055,6 @@ void RenderProcessHostImpl::PropagateBrowserCommandLineToRenderer(
switches::kEnableADTSStreamParser, switches::kEnableADTSStreamParser,
switches::kEnableBeginFrameScheduling, switches::kEnableBeginFrameScheduling,
switches::kEnableBleedingEdgeRenderingFastPaths, switches::kEnableBleedingEdgeRenderingFastPaths,
switches::kEnableBrowserPluginForAllViewTypes,
switches::kEnableCompositingForFixedPosition, switches::kEnableCompositingForFixedPosition,
switches::kEnableCompositingForTransition, switches::kEnableCompositingForTransition,
switches::kEnableDeferredImageDecoding, switches::kEnableDeferredImageDecoding,
......
...@@ -351,10 +351,6 @@ const char kEnableAccessibilityLogging[] = "enable-accessibility-logging"; ...@@ -351,10 +351,6 @@ const char kEnableAccessibilityLogging[] = "enable-accessibility-logging";
// Use a BeginFrame signal from browser to renderer to schedule rendering. // Use a BeginFrame signal from browser to renderer to schedule rendering.
const char kEnableBeginFrameScheduling[] = "enable-begin-frame-scheduling"; const char kEnableBeginFrameScheduling[] = "enable-begin-frame-scheduling";
// Enables browser plugin for all types of pages.
const char kEnableBrowserPluginForAllViewTypes[] =
"enable-browser-plugin-for-all-view-types";
// Enable the creation of compositing layers for fixed position // Enable the creation of compositing layers for fixed position
// elements. Three options are needed to support four possible scenarios: // elements. Three options are needed to support four possible scenarios:
// 1. Default (disabled) // 1. Default (disabled)
......
...@@ -108,7 +108,6 @@ CONTENT_EXPORT extern const char kEnableLayerSquashing[]; ...@@ -108,7 +108,6 @@ CONTENT_EXPORT extern const char kEnableLayerSquashing[];
CONTENT_EXPORT extern const char kEnableContainerCulling[]; CONTENT_EXPORT extern const char kEnableContainerCulling[];
extern const char kEnableAccessibilityLogging[]; extern const char kEnableAccessibilityLogging[];
CONTENT_EXPORT extern const char kEnableBeginFrameScheduling[]; CONTENT_EXPORT extern const char kEnableBeginFrameScheduling[];
CONTENT_EXPORT extern const char kEnableBrowserPluginForAllViewTypes[];
CONTENT_EXPORT extern const char kEnableCompositingForFixedPosition[]; CONTENT_EXPORT extern const char kEnableCompositingForFixedPosition[];
CONTENT_EXPORT extern const char kEnableCompositingForTransition[]; CONTENT_EXPORT extern const char kEnableCompositingForTransition[];
CONTENT_EXPORT extern const char kEnableDeferredImageDecoding[]; CONTENT_EXPORT extern const char kEnableDeferredImageDecoding[];
......
...@@ -118,13 +118,6 @@ bool ShellContentRendererClient::OverrideCreatePlugin( ...@@ -118,13 +118,6 @@ bool ShellContentRendererClient::OverrideCreatePlugin(
WebLocalFrame* frame, WebLocalFrame* frame,
const WebPluginParams& params, const WebPluginParams& params,
WebPlugin** plugin) { WebPlugin** plugin) {
std::string mime_type = params.mimeType.utf8();
if (mime_type == content::kBrowserPluginMimeType) {
// Allow browser plugin in content_shell only if it is forced by flag.
// Returning true here disables the plugin.
return !CommandLine::ForCurrentProcess()->HasSwitch(
switches::kEnableBrowserPluginForAllViewTypes);
}
return false; return false;
} }
...@@ -203,13 +196,7 @@ void ShellContentRendererClient::WebTestProxyCreated(RenderView* render_view, ...@@ -203,13 +196,7 @@ void ShellContentRendererClient::WebTestProxyCreated(RenderView* render_view,
bool ShellContentRendererClient::AllowBrowserPlugin( bool ShellContentRendererClient::AllowBrowserPlugin(
blink::WebPluginContainer* container) { blink::WebPluginContainer* container) {
if (CommandLine::ForCurrentProcess()->HasSwitch( return true;
switches::kEnableBrowserPluginForAllViewTypes)) {
// Allow BrowserPlugin if forced by command line flag. This is generally
// true for tests.
return true;
}
return ContentRendererClient::AllowBrowserPlugin(container);
} }
} // namespace content } // namespace content
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment