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

Unified Diff: chrome/utility/utility_main.cc

Issue 5947002: As the first step in an effort to improve robustness of the cloud print proxy... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Review comments Created 10 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
« no previous file with comments | « chrome/service/service_utility_process_host.cc ('k') | chrome/utility/utility_thread.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/utility/utility_main.cc
===================================================================
--- chrome/utility/utility_main.cc (revision 69859)
+++ chrome/utility/utility_main.cc (working copy)
@@ -45,12 +45,14 @@
DCHECK(rv) << "Couldn't load PDF plugin";
}
- sandbox::TargetServices* target_services =
- parameters.sandbox_info_.TargetServices();
- if (!target_services)
- return false;
-
- target_services->LowerToken();
+ bool no_sandbox = parameters.command_line_.HasSwitch(switches::kNoSandbox);
+ if (!no_sandbox) {
+ sandbox::TargetServices* target_services =
+ parameters.sandbox_info_.TargetServices();
+ if (!target_services)
+ return false;
+ target_services->LowerToken();
+ }
#endif
CommandLine* command_line = CommandLine::ForCurrentProcess();
« no previous file with comments | « chrome/service/service_utility_process_host.cc ('k') | chrome/utility/utility_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698