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

Unified Diff: chrome/test/base/mojo_test_connector.cc

Issue 2338793003: services/shell: Turn on sandboxing for mojo apps.
Patch Set: . Created 4 years, 3 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 | « chrome/app/mash/mash_runner.cc ('k') | components/filesystem/manifest.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/base/mojo_test_connector.cc
diff --git a/chrome/test/base/mojo_test_connector.cc b/chrome/test/base/mojo_test_connector.cc
index 32f6b8c07811a010fd023edaa4845c1251cf9c2c..304924f17ee89eb41349b851a7f2602056a0b726 100644
--- a/chrome/test/base/mojo_test_connector.cc
+++ b/chrome/test/base/mojo_test_connector.cc
@@ -215,6 +215,14 @@ class MojoTestConnector::NativeRunnerDelegateImpl
if (target.name() == "exe:mash_browser_tests")
RemoveMashFromBrowserTests(command_line);
command_line->AppendSwitch(MojoTestConnector::kMashApp);
+ if (target.instance() == "font_service" || target.instance() == "ui") {
+ base::CommandLine::StringVector argv(command_line->argv());
+ auto iter = std::find(argv.begin(), argv.end(),
+ FILE_PATH_LITERAL("--enable-sandbox"));
+ if (iter != argv.end())
+ argv.erase(iter);
+ *command_line = base::CommandLine(argv);
+ }
return;
}
« no previous file with comments | « chrome/app/mash/mash_runner.cc ('k') | components/filesystem/manifest.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698