Index: content/shell/renderer/shell_content_renderer_client.cc |
diff --git a/content/shell/renderer/shell_content_renderer_client.cc b/content/shell/renderer/shell_content_renderer_client.cc |
index 3af36748ffe96d8526928235d3df1ad803cbe847..7c2f316e1fb439b13ab4a5da554f1e1a8a067f5f 100644 |
--- a/content/shell/renderer/shell_content_renderer_client.cc |
+++ b/content/shell/renderer/shell_content_renderer_client.cc |
@@ -21,6 +21,7 @@ |
#include "content/shell/renderer/test_runner/web_test_proxy.h" |
#include "content/shell/renderer/webkit_test_runner.h" |
#include "content/test/mock_webclipboard_impl.h" |
+#include "ppapi/shared_impl/ppapi_switches.h" |
#include "third_party/WebKit/public/platform/WebMediaStreamCenter.h" |
#include "third_party/WebKit/public/web/WebPluginParams.h" |
#include "third_party/WebKit/public/web/WebView.h" |
@@ -191,4 +192,21 @@ void ShellContentRendererClient::WebTestProxyCreated(RenderView* render_view, |
ShellRenderProcessObserver::GetInstance()->test_delegate()); |
} |
+bool ShellContentRendererClient::IsPluginAllowedToUseCompositorAPI( |
+ const GURL& url) { |
+ return CommandLine::ForCurrentProcess()->HasSwitch( |
+ switches::kEnablePepperTesting); |
+} |
+ |
+bool ShellContentRendererClient::IsPluginAllowedToUseVideoDecodeAPI( |
+ const GURL& url) { |
+ return CommandLine::ForCurrentProcess()->HasSwitch( |
+ switches::kEnablePepperTesting); |
+} |
+ |
+bool ShellContentRendererClient::IsPluginAllowedToUseDevChannelAPIs() { |
+ return CommandLine::ForCurrentProcess()->HasSwitch( |
+ switches::kEnablePepperTesting); |
+} |
+ |
} // namespace content |