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

Unified Diff: content/shell/renderer/shell_content_renderer_client.cc

Issue 346263006: Pepper: Narrow dev channel whitelisting behavior. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 months 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/shell/renderer/shell_content_renderer_client.h ('k') | ppapi/thunk/OWNERS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « content/shell/renderer/shell_content_renderer_client.h ('k') | ppapi/thunk/OWNERS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698