Index: chrome/app/chrome_main_app_mode_mac.mm |
diff --git a/chrome/app/chrome_main_app_mode_mac.mm b/chrome/app/chrome_main_app_mode_mac.mm |
index 1de3fe5899ec42689fbbc4614cc5863a9ea4f127..96741ccc0c273868065ec383f4eee8bf37f38212 100644 |
--- a/chrome/app/chrome_main_app_mode_mac.mm |
+++ b/chrome/app/chrome_main_app_mode_mac.mm |
@@ -87,6 +87,9 @@ void AppShimController::Init() { |
channel_ = new IPC::ChannelProxy(handle, IPC::Channel::MODE_NAMED_CLIENT, |
this, g_io_thread->message_loop_proxy()); |
+ if (CommandLine::ForCurrentProcess()->HasSwitch(app_mode::kNoLaunchApp)) |
+ return; |
+ |
channel_->Send(new AppShimHostMsg_LaunchApp( |
g_info->profile_dir.value(), g_info->app_mode_id)); |
} |