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

Unified Diff: content/browser/ppapi_plugin_process_host.cc

Issue 338523007: Pepper: Whitelist dev channel APIs for some apps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: gross pnacl hack 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/browser/plugin_service_impl.cc ('k') | content/public/browser/content_browser_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/ppapi_plugin_process_host.cc
diff --git a/content/browser/ppapi_plugin_process_host.cc b/content/browser/ppapi_plugin_process_host.cc
index 39c6bc30205244703b847bb2f21fa11dcab55373..fc6a75ebed701a49324b6f6e050683df55812fb5 100644
--- a/content/browser/ppapi_plugin_process_host.cc
+++ b/content/browser/ppapi_plugin_process_host.cc
@@ -232,7 +232,11 @@ PpapiPluginProcessHost::PpapiPluginProcessHost(
: profile_data_directory_(profile_data_directory),
is_broker_(false) {
uint32 base_permissions = info.permissions;
- if (GetContentClient()->browser()->IsPluginAllowedToUseDevChannelAPIs())
+
+ // We don't have to do any whitelisting for APIs in this process host, so
+ // don't bother passing a browser context or document url here.
+ if (GetContentClient()->browser()->IsPluginAllowedToUseDevChannelAPIs(
+ NULL, GURL()))
base_permissions |= ppapi::PERMISSION_DEV_CHANNEL;
permissions_ = ppapi::PpapiPermissions::GetForCommandLine(base_permissions);
« no previous file with comments | « content/browser/plugin_service_impl.cc ('k') | content/public/browser/content_browser_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698