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

Unified Diff: chrome/browser/browser_main.cc

Issue 10675: Switch to avoid first-run pop-up from displaying while in app-mode. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 1 month 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browser_main.cc
===================================================================
--- chrome/browser/browser_main.cc (revision 5335)
+++ chrome/browser/browser_main.cc (working copy)
@@ -334,6 +334,11 @@
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(
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698