summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjeremy@chromium.org <jeremy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-22 18:38:25 +0000
committerjeremy@chromium.org <jeremy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-22 18:38:25 +0000
commitb1a9a1f8ef76800c09b8f035c5c9f7a5f02b03ed (patch)
tree478da09060ff40770de8a37ea4d5bfcc9f9a4915
parent45dc9944fc57dc4d42769d87dab1e406b8a16ea0 (diff)
downloadchromium_src-b1a9a1f8ef76800c09b8f035c5c9f7a5f02b03ed.zip
chromium_src-b1a9a1f8ef76800c09b8f035c5c9f7a5f02b03ed.tar.gz
chromium_src-b1a9a1f8ef76800c09b8f035c5c9f7a5f02b03ed.tar.bz2
Respect the kNoFirstRun flag on Mac to not display the UI. This should help solve a problem around this area with the release builders.
Review URL: http://codereview.chromium.org/113775 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16764 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/browser/browser_main.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/chrome/browser/browser_main.cc b/chrome/browser/browser_main.cc
index af905c4..c50cd6f 100644
--- a/chrome/browser/browser_main.cc
+++ b/chrome/browser/browser_main.cc
@@ -338,7 +338,13 @@ int BrowserMain(const MainFunctionParams& parameters) {
#if defined(OS_POSIX)
// On POSIX we display the first run dialog as early as possible, so we can
// get the stats enabled.
- if (is_first_run && !first_run_ui_bypass) {
+ // TODO:
+ // We check the kNoFirstRun command line switch explicitly here since the
+ // early placement of this block happens before that's factored into
+ // first_run_ui_bypass, we probably want to move that block up
+ // and remove the explicit check from here in the long run.
+ if (is_first_run && !first_run_ui_bypass &&
+ !parsed_command_line.HasSwitch(switches::kNoFirstRun)) {
// Dummy value, we don't need the profile for the OS X version of this
// method at present.
Profile* profile = NULL;