Index: chrome/browser/chrome_browser_main.cc |
diff --git a/chrome/browser/chrome_browser_main.cc b/chrome/browser/chrome_browser_main.cc |
index a87da5ae0b9d4db503db3289c9e56da6fe90d0b2..7150b37e67a555088607e6c12440629d3268dab0 100644 |
--- a/chrome/browser/chrome_browser_main.cc |
+++ b/chrome/browser/chrome_browser_main.cc |
@@ -82,6 +82,7 @@ |
#include "chrome/browser/ui/webui/chrome_url_data_manager_backend.h" |
#include "chrome/browser/ui/webui/ntp/new_tab_ui.h" |
#include "chrome/browser/ui/webui/sync_promo/sync_promo_trial.h" |
+#include "chrome/common/app_mode.h" |
#include "chrome/common/child_process_logging.h" |
#include "chrome/common/chrome_constants.h" |
#include "chrome/common/chrome_paths.h" |
@@ -1272,8 +1273,7 @@ int ChromeBrowserMainParts::PreCreateThreadsImpl() { |
// 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) || |
- parsed_command_line().HasSwitch(switches::kAppId) || |
+ (app_mode::IsRunningInAppMode() || |
sail
2012/03/06 23:29:23
Same as last time, can you just add kNoFirstRun to
|
parsed_command_line().HasSwitch(switches::kNoFirstRun))) |
first_run_ui_bypass_ = true; |