| Index: apps/app_shim/chrome_main_app_mode_mac.mm
|
| diff --git a/apps/app_shim/chrome_main_app_mode_mac.mm b/apps/app_shim/chrome_main_app_mode_mac.mm
|
| index 2c13ba23c29ec3de0afd7e68c465542fb17e6ced..53a823cfea2820ad11ae7af0ba4dbe0c7fc8b576 100644
|
| --- a/apps/app_shim/chrome_main_app_mode_mac.mm
|
| +++ b/apps/app_shim/chrome_main_app_mode_mac.mm
|
| @@ -605,8 +605,16 @@ int ChromeAppModeStart(const app_mode::ChromeAppModeInfo* info) {
|
| ProcessSerialNumber psn;
|
| CommandLine command_line(CommandLine::NO_PROGRAM);
|
| command_line.AppendSwitch(switches::kSilentLaunch);
|
| - command_line.AppendSwitchPath(switches::kProfileDirectory,
|
| - info->profile_dir);
|
| +
|
| + // If the shim is the app launcher, pass --show-app-list when starting a new
|
| + // Chrome process to inform startup codepaths and load the correct profile.
|
| + if (info->app_mode_id == app_mode::kAppListModeId) {
|
| + command_line.AppendSwitch(switches::kShowAppList);
|
| + } else {
|
| + command_line.AppendSwitchPath(switches::kProfileDirectory,
|
| + info->profile_dir);
|
| + }
|
| +
|
| bool success =
|
| base::mac::OpenApplicationWithPath(base::mac::OuterBundlePath(),
|
| command_line,
|
|
|