diff options
Diffstat (limited to 'chrome/common/child_process_host.cc')
-rw-r--r-- | chrome/common/child_process_host.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/chrome/common/child_process_host.cc b/chrome/common/child_process_host.cc index 5ac925a..f7fe2df 100644 --- a/chrome/common/child_process_host.cc +++ b/chrome/common/child_process_host.cc @@ -22,7 +22,6 @@ #include "chrome/common/process_watcher.h" #include "chrome/common/result_codes.h" #include "chrome/installer/util/google_update_settings.h" -#include "ipc/ipc_logging.h" #if defined(OS_LINUX) #include "base/linux_util.h" @@ -256,6 +255,12 @@ void ChildProcessHost::ListenerHook::OnMessageReceived( void ChildProcessHost::ListenerHook::OnChannelConnected(int32 peer_pid) { host_->opening_channel_ = false; host_->OnChannelConnected(peer_pid); + +#if defined(IPC_MESSAGE_LOG_ENABLED) + bool enabled = IPC::Logging::current()->Enabled(); + host_->Send(new PluginProcessMsg_SetIPCLoggingEnabled(enabled)); +#endif + host_->Send(new PluginProcessMsg_AskBeforeShutdown()); // Notify in the main loop of the connection. |