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

Unified Diff: chrome/browser/chrome_browser_main.cc

Issue 11968034: Enable profile switching for standalone App Launcher via the Settings App. (Closed) Base URL: git://nomatter.syd/chromium/src.git@master
Patch Set: Created 7 years, 11 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 d9e443d307de45fc135e6b5462e2540debe49f3c..6345f9c272c954749dbd975ef1f1f7c80d102d3b 100644
--- a/chrome/browser/chrome_browser_main.cc
+++ b/chrome/browser/chrome_browser_main.cc
@@ -334,8 +334,13 @@ Profile* CreateProfile(const content::MainFunctionParams& parameters,
profile = g_browser_process->profile_manager()->GetDefaultProfile(
user_data_dir);
#else
- profile = g_browser_process->profile_manager()->GetLastUsedProfile(
- user_data_dir);
+ if (parsed_command_line.HasSwitch(switches::kShowAppList)) {
+ profile = g_browser_process->profile_manager()->GetAppListProfile(
+ user_data_dir);
+ } else {
+ profile = g_browser_process->profile_manager()->GetLastUsedProfile(
+ user_data_dir);
+ }
#endif
if (profile)
return profile;

Powered by Google App Engine
This is Rietveld 408576698