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

Unified Diff: chrome/renderer/pepper/ppb_nacl_private_impl.cc

Issue 11471011: Add PPAPI permissions for the testing interface (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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
Index: chrome/renderer/pepper/ppb_nacl_private_impl.cc
diff --git a/chrome/renderer/pepper/ppb_nacl_private_impl.cc b/chrome/renderer/pepper/ppb_nacl_private_impl.cc
index f4d3a65dab59e8649b00ef84203cd9cdaa7750b4..a819f5bf136c83db354bd99938e92af0c23a2352 100644
--- a/chrome/renderer/pepper/ppb_nacl_private_impl.cc
+++ b/chrome/renderer/pepper/ppb_nacl_private_impl.cc
@@ -95,10 +95,10 @@ PP_NaClResult LaunchSelLdr(PP_Instance instance,
// Conditionally block 'Dev' interfaces. We do this for the NaCl process, so
// it's clearer to developers when they are using 'Dev' inappropriately. We
// must also check on the trusted side of the proxy.
- // TODO(bbudge) verify we're blocking 'Dev' interfaces on the trusted side.
if (enable_ppapi_dev)
perm_bits |= ppapi::PERMISSION_DEV;
- instance_info.permissions = ppapi::PpapiPermissions(perm_bits);
+ instance_info.permissions =
+ ppapi::PpapiPermissions::GetForCommandLine(perm_bits);
if (!sender->Send(new ChromeViewHostMsg_LaunchNaCl(
instance_info.url,

Powered by Google App Engine
This is Rietveld 408576698