Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(426)

Unified Diff: chrome/browser/chrome_browser_main.cc

Issue 9618021: Infrastructure to improve app mode stub <-> Chrome main communication. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Another approach Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698