| 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;
|
|
|