diff options
author | jcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-01 18:24:41 +0000 |
---|---|---|
committer | jcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-01 18:24:41 +0000 |
commit | d659132ecf7a4948bc74593da6a62bf094bbf52b (patch) | |
tree | ee09af03cfa7a8d94112768cec109f5af6ab4b11 /chrome/browser/browser_init.cc | |
parent | 3bf03aff50e1881229c3b4e28591da4959b9ea07 (diff) | |
download | chromium_src-d659132ecf7a4948bc74593da6a62bf094bbf52b.zip chromium_src-d659132ecf7a4948bc74593da6a62bf094bbf52b.tar.gz chromium_src-d659132ecf7a4948bc74593da6a62bf094bbf52b.tar.bz2 |
Some UI tests would fail on some boxes as these tests have specific expectations in term of how many and what kind of info-bars are showing, and the default browser check would add an extra info-bar.
This CL adds a switch that disables the default browser check on start-up and makes the UI tests specify that switch.
BUG=13064
TEST=Run the UI tests.
Review URL: http://codereview.chromium.org/112081
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17336 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_init.cc')
-rw-r--r-- | chrome/browser/browser_init.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/browser_init.cc b/chrome/browser/browser_init.cc index 59258e2..c8d3d5d 100644 --- a/chrome/browser/browser_init.cc +++ b/chrome/browser/browser_init.cc @@ -419,7 +419,8 @@ bool BrowserInit::LaunchWithProfile::Launch(Profile* profile, OpenURLsInBrowser(browser, process_startup, urls_to_open); } // Check whether we are the default browser. - CheckDefaultBrowser(profile); + if (!command_line_.HasSwitch(switches::kNoDefaultBrowserCheck)) + CheckDefaultBrowser(profile); } else { RecordLaunchModeHistogram(LM_AS_WEBAPP); } |