diff options
author | jrg@chromium.org <jrg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-27 00:50:45 +0000 |
---|---|---|
committer | jrg@chromium.org <jrg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-27 00:50:45 +0000 |
commit | 5d4cba3d499354df96e3c40c9a8d05b614265702 (patch) | |
tree | 45014bf871f7f2380df54b9b1476d361463bc8a0 /chrome/common | |
parent | 39a46ad4bf69fd1b6fadb19fe61d4a5e6d5a100f (diff) | |
download | chromium_src-5d4cba3d499354df96e3c40c9a8d05b614265702.zip chromium_src-5d4cba3d499354df96e3c40c9a8d05b614265702.tar.gz chromium_src-5d4cba3d499354df96e3c40c9a8d05b614265702.tar.bz2 |
Add --disable-translate to help Selenium/WebDriver dudes make Chrome
more predictable for automated testing.
BUG=none
TEST=Launch Chrome. Go to http://www.diplomatie.gouv.fr/fr/
See translate info bar? Good.
Now launch Chrome with --disable-translate and go to that page again.
Make sure translate info bar never shows up.
Review URL: http://codereview.chromium.org/3117044
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57620 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r-- | chrome/common/chrome_switches.cc | 5 | ||||
-rw-r--r-- | chrome/common/chrome_switches.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/chrome/common/chrome_switches.cc b/chrome/common/chrome_switches.cc index b73c5b3..c1c7a49 100644 --- a/chrome/common/chrome_switches.cc +++ b/chrome/common/chrome_switches.cc @@ -286,6 +286,11 @@ const char kDisableSyncTypedUrls[] = "disable-sync-typed-urls"; const char kDisableTabCloseableStateWatcher[] = "disable-tab-closeable-state-watcher"; +// Allow disabling of translate from the command line to assist with +// automated browser testing (e.g. Selenium/WebDriver). Normal +// browser users should disable translate with the preference. +const char kDisableTranslate[] = "disable-translate"; + // Enables the backend service for web resources, used in the new tab page for // loading tips and recommendations from a JSON feed. const char kDisableWebResources[] = "disable-web-resources"; diff --git a/chrome/common/chrome_switches.h b/chrome/common/chrome_switches.h index 77b2070..a466041 100644 --- a/chrome/common/chrome_switches.h +++ b/chrome/common/chrome_switches.h @@ -95,6 +95,7 @@ extern const char kDisableSyncThemes[]; extern const char kDisableSyncTypedUrls[]; extern const char kDisableSyncSessions[]; extern const char kDisableTabCloseableStateWatcher[]; +extern const char kDisableTranslate[]; extern const char kDisableWebResources[]; extern const char kDisableWebSecurity[]; extern const char kDisableWebSockets[]; |