From b1a9a1f8ef76800c09b8f035c5c9f7a5f02b03ed Mon Sep 17 00:00:00 2001 From: "jeremy@chromium.org" Date: Fri, 22 May 2009 18:38:25 +0000 Subject: 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 --- chrome/browser/browser_main.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'chrome/browser/browser_main.cc') 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; -- cgit v1.1