Index: content/shell/shell_content_browser_client.cc |
diff --git a/content/shell/shell_content_browser_client.cc b/content/shell/shell_content_browser_client.cc |
index bd44716e510fd4cfca0a1426724a8af7357e975c..b973052b5cbc32d41291a42f9ab97b05280d4f53 100644 |
--- a/content/shell/shell_content_browser_client.cc |
+++ b/content/shell/shell_content_browser_client.cc |
@@ -10,6 +10,7 @@ |
#include "content/public/browser/render_process_host.h" |
#include "content/public/browser/resource_dispatcher_host.h" |
#include "content/public/browser/storage_partition.h" |
+#include "content/public/common/content_switches.h" |
#include "content/shell/geolocation/shell_access_token_store.h" |
#include "content/shell/shell.h" |
#include "content/shell/shell_browser_context.h" |
@@ -160,6 +161,12 @@ std::string ShellContentBrowserClient::GetDefaultDownloadName() { |
return "download"; |
} |
+bool ShellContentBrowserClient::SupportsBrowserPlugin( |
+ content::BrowserContext* browser_context, const GURL& url) { |
+ return CommandLine::ForCurrentProcess()->HasSwitch( |
+ switches::kEnableBrowserPluginForAllViewTypes); |
+} |
+ |
WebContentsViewDelegate* ShellContentBrowserClient::GetWebContentsViewDelegate( |
WebContents* web_contents) { |
#if !defined(USE_AURA) |