summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser_init.cc
diff options
context:
space:
mode:
authorjcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-01 18:24:41 +0000
committerjcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-01 18:24:41 +0000
commitd659132ecf7a4948bc74593da6a62bf094bbf52b (patch)
treeee09af03cfa7a8d94112768cec109f5af6ab4b11 /chrome/browser/browser_init.cc
parent3bf03aff50e1881229c3b4e28591da4959b9ea07 (diff)
downloadchromium_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.cc3
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);
}