| 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..c1271c1999417a99e9599a16b118fdc6351ce9a6 100644
|
| --- a/apps/app_shim/chrome_main_app_mode_mac.mm
|
| +++ b/apps/app_shim/chrome_main_app_mode_mac.mm
|
| @@ -605,8 +605,14 @@ 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 (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,
|
|
|