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

Unified Diff: chrome/test/webdriver/webdriver_automation.cc

Issue 9811010: Add commandline argument to ChromeDriver for forcing Chrome to start with no (Closed) Base URL: svn://svn.chromium.org/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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/webdriver/webdriver_automation.cc
diff --git a/chrome/test/webdriver/webdriver_automation.cc b/chrome/test/webdriver/webdriver_automation.cc
index f8ea88aedd25216c1692556515c440c82e123492..71b4dd9a57ccd5af94a3e9337cbde413b68db26f 100644
--- a/chrome/test/webdriver/webdriver_automation.cc
+++ b/chrome/test/webdriver/webdriver_automation.cc
@@ -202,6 +202,9 @@ void Automation::Init(
Error** error) {
// Prepare Chrome's command line.
CommandLine command(CommandLine::NO_PROGRAM);
+ if (CommandLine::ForCurrentProcess()->HasSwitch("no-sandbox")) {
+ command.AppendSwitch(switches::kNoSandbox);
+ }
command.AppendSwitch(switches::kDisableHangMonitor);
command.AppendSwitch(switches::kDisablePromptOnRepost);
command.AppendSwitch(switches::kDomAutomationController);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698