summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser_main.cc
diff options
context:
space:
mode:
authorbrg@chromium.com <brg@chromium.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-14 22:40:19 +0000
committerbrg@chromium.com <brg@chromium.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-14 22:40:19 +0000
commitd66cdc5623b9e6815c1048c02b6ca99664ec1bf7 (patch)
tree414550ba698bab1ecd45841911c47099d5a6672f /chrome/browser/browser_main.cc
parent2a2f46104303d73907c8a04630d372505af9a430 (diff)
downloadchromium_src-d66cdc5623b9e6815c1048c02b6ca99664ec1bf7.zip
chromium_src-d66cdc5623b9e6815c1048c02b6ca99664ec1bf7.tar.gz
chromium_src-d66cdc5623b9e6815c1048c02b6ca99664ec1bf7.tar.bz2
Switch to avoid first-run pop-up from displaying while in app-mode.
Review URL: http://codereview.chromium.org/10675 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5511 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_main.cc')
-rw-r--r--chrome/browser/browser_main.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/browser_main.cc b/chrome/browser/browser_main.cc
index 6aba314..7c37edc 100644
--- a/chrome/browser/browser_main.cc
+++ b/chrome/browser/browser_main.cc
@@ -334,6 +334,11 @@ int BrowserMain(CommandLine &parsed_command_line,
first_run_ui_bypass =
!FirstRun::ProcessMasterPreferences(user_data_dir,
std::wstring(), NULL);
+
+ // If we are running in App mode, we do not want to show the importer
+ // (first run) UI.
+ if (!first_run_ui_bypass && parsed_command_line.HasSwitch(switches::kApp))
+ first_run_ui_bypass = true;
}
ResourceBundle::InitSharedInstance(