summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser_init.cc
diff options
context:
space:
mode:
authormdm@chromium.org <mdm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-09 19:59:33 +0000
committermdm@chromium.org <mdm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-09 19:59:33 +0000
commit0bbb1b1f9842366babce756ab2f1713832be63de (patch)
tree891251ee7ea572b1cb5b72bb142d352751de47a0 /chrome/browser/browser_init.cc
parentba1daaf88102d3c82b6a63daef7cb77ae5d6578d (diff)
downloadchromium_src-0bbb1b1f9842366babce756ab2f1713832be63de.zip
chromium_src-0bbb1b1f9842366babce756ab2f1713832be63de.tar.gz
chromium_src-0bbb1b1f9842366babce756ab2f1713832be63de.tar.bz2
Don't do a default browser check when new tabs are opened via the command line.
BUG=none TEST=none Review URL: http://codereview.chromium.org/203001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25777 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 78b6fb6..f893f4c 100644
--- a/chrome/browser/browser_init.cc
+++ b/chrome/browser/browser_init.cc
@@ -467,7 +467,8 @@ bool BrowserInit::LaunchWithProfile::Launch(Profile* profile,
}
#endif
// Check whether we are the default browser.
- if (!command_line_.HasSwitch(switches::kNoDefaultBrowserCheck))
+ if (process_startup &&
+ !command_line_.HasSwitch(switches::kNoDefaultBrowserCheck))
CheckDefaultBrowser(profile);
} else {
RecordLaunchModeHistogram(LM_AS_WEBAPP);