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

Unified Diff: chrome/app/chrome_main_delegate.cc

Issue 19737002: Enable sandbox in local discovery utility process. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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 | chrome/browser/local_discovery/service_discovery_host_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/app/chrome_main_delegate.cc
diff --git a/chrome/app/chrome_main_delegate.cc b/chrome/app/chrome_main_delegate.cc
index ab692b65e83bd130d0f75044ac9a3c046af190ff..4077d3c9703c50de65f64a02ffb1c5fe113e1934 100644
--- a/chrome/app/chrome_main_delegate.cc
+++ b/chrome/app/chrome_main_delegate.cc
@@ -636,6 +636,11 @@ void ChromeMainDelegate::PreSandboxStartup() {
// only do this when ResourcesBundle has been initialized).
SetMacProcessName(command_line);
#endif // defined(OS_MACOSX)
+
+#if !defined(CHROME_MULTIPLE_DLL_BROWSER)
+ if (process_type == switches::kUtilityProcess)
+ chrome::ChromeContentUtilityClient::PreSandboxStartup();
+#endif
}
#if defined(OS_POSIX) && !defined(OS_MACOSX)
« no previous file with comments | « no previous file | chrome/browser/local_discovery/service_discovery_host_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698