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

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

Issue 10837271: Disable some services at chrome startup for chromedriver. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: . Created 8 years, 4 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/test/webdriver/test/chromedriver_tests.py ('k') | 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 82302666697581a1a1ac4272649d8ab3b32921fc..630132eae57f212f8f5c2a627a6dcce5be9c7512 100644
--- a/chrome/test/webdriver/webdriver_automation.cc
+++ b/chrome/test/webdriver/webdriver_automation.cc
@@ -364,8 +364,13 @@ void Automation::Init(
command.AppendSwitch(switches::kFullMemoryCrashReport);
command.AppendSwitch(switches::kNoDefaultBrowserCheck);
command.AppendSwitch(switches::kNoFirstRun);
+ command.AppendSwitch(switches::kDisableBackgroundNetworking);
+ command.AppendSwitch(switches::kDisableSync);
+ command.AppendSwitch(switches::kDisableTranslate);
command.AppendSwitch(switches::kDisableWebResources);
command.AppendSwitch(switches::kSbDisableAutoUpdate);
+ command.AppendSwitch(switches::kSbDisableDownloadProtection);
+ command.AppendSwitch(switches::kDisableClientSidePhishingDetection);
command.AppendSwitch(switches::kDisableComponentUpdate);
command.AppendSwitch(switches::kDisableDefaultApps);
#if defined(OS_LINUX) && !defined(OS_CHROMEOS)
@@ -379,7 +384,7 @@ void Automation::Init(
if (options.ignore_certificate_errors)
command.AppendSwitch(switches::kIgnoreCertificateErrors);
if (options.user_data_dir.empty())
- command.AppendSwitchASCII(switches::kHomePage, chrome::kAboutBlankURL);
+ command.AppendArg(chrome::kAboutBlankURL);
command.AppendArguments(options.command, true /* include_program */);
« no previous file with comments | « chrome/test/webdriver/test/chromedriver_tests.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698