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

Unified Diff: chrome/common/chrome_content_client.cc

Issue 9838083: Add a sandbox API for broker handle duplication (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 9 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 | « no previous file | content/common/sandbox_init_win.cc » ('j') | sandbox/src/handle_dispatcher.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/chrome_content_client.cc
===================================================================
--- chrome/common/chrome_content_client.cc (revision 128951)
+++ chrome/common/chrome_content_client.cc (working copy)
@@ -417,6 +417,14 @@
return false;
}
+ // Add policy for proxy window pump.
+ if (policy->AddRule(sandbox::TargetPolicy::SUBSYS_HANDLES,
+ sandbox::TargetPolicy::HANDLES_DUP_ANY,
+ L"Event") != sandbox::SBOX_ALL_OK) {
+ NOTREACHED();
+ return false;
+ }
+
// Allow Talk's camera control.
base::win::RegKey talk_key(HKEY_CURRENT_USER,
L"Software\\Google\\Google Talk Plugin",
« no previous file with comments | « no previous file | content/common/sandbox_init_win.cc » ('j') | sandbox/src/handle_dispatcher.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698