diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-10 19:38:55 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-10 19:38:55 +0000 |
commit | d5dfa5a8f498025031c52241bb2f2100faf30e86 (patch) | |
tree | 983ed95256f2c123bc1292f7562f10b6ae6f5580 /chrome/browser/views/about_ipc_dialog.cc | |
parent | 6d7b953ec6132658ec7f85c2976c98ecd0c852b2 (diff) | |
download | chromium_src-d5dfa5a8f498025031c52241bb2f2100faf30e86.zip chromium_src-d5dfa5a8f498025031c52241bb2f2100faf30e86.tar.gz chromium_src-d5dfa5a8f498025031c52241bb2f2100faf30e86.tar.bz2 |
revert my ipc change due to compile failure in debug ipc_tests
Review URL: http://codereview.chromium.org/20229
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9494 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/about_ipc_dialog.cc')
-rw-r--r-- | chrome/browser/views/about_ipc_dialog.cc | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/chrome/browser/views/about_ipc_dialog.cc b/chrome/browser/views/about_ipc_dialog.cc index 2042bae..e5f39d9 100644 --- a/chrome/browser/views/about_ipc_dialog.cc +++ b/chrome/browser/views/about_ipc_dialog.cc @@ -2,9 +2,16 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "chrome/browser/views/about_ipc_dialog.h" +// Need to include this before any other file because it defines +// IPC_MESSAGE_LOG_ENABLED. We need to use it to define +// IPC_MESSAGE_MACROS_LOG_ENABLED so render_messages.h will generate the +// ViewMsgLog et al. functions. +#include "chrome/common/ipc_message.h" #ifdef IPC_MESSAGE_LOG_ENABLED +#define IPC_MESSAGE_MACROS_LOG_ENABLED + +#include "chrome/browser/views/about_ipc_dialog.h" #include <set> @@ -261,7 +268,17 @@ AboutIPCDialog::AboutIPCDialog() table_(NULL), tracking_(false) { SetupControls(); - IPC::Logging::current()->SetConsumer(this); + + IPC::Logging* log = IPC::Logging::current();
+ log->RegisterMessageLogger(ViewStart, ViewMsgLog);
+ log->RegisterMessageLogger(ViewHostStart, ViewHostMsgLog);
+ log->RegisterMessageLogger(PluginProcessStart, PluginProcessMsgLog);
+ log->RegisterMessageLogger(PluginProcessHostStart, PluginProcessHostMsgLog);
+ log->RegisterMessageLogger(PluginStart, PluginMsgLog);
+ log->RegisterMessageLogger(PluginHostStart, PluginHostMsgLog);
+ log->RegisterMessageLogger(NPObjectStart, NPObjectMsgLog);
+
+ log->SetConsumer(this); } AboutIPCDialog::~AboutIPCDialog() { |