From 08658a41d004daaf4183537fe2314eb2532881ee Mon Sep 17 00:00:00 2001 From: "jam@chromium.org" Date: Tue, 10 Feb 2009 19:14:33 +0000 Subject: Fix ipc logging for non browser processes. I broke this in my last refactoring, since the logger functions only got registered in the browser. This fix registers them using a global object for each message type (that's only compiled when debugging is enabled). One less thing to take care of when creating new message types. Review URL: http://codereview.chromium.org/20213 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9492 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/common/ipc_logging.h | 8 -------- 1 file changed, 8 deletions(-) (limited to 'chrome/common/ipc_logging.h') diff --git a/chrome/common/ipc_logging.h b/chrome/common/ipc_logging.h index bf49595..d2b9aab 100644 --- a/chrome/common/ipc_logging.h +++ b/chrome/common/ipc_logging.h @@ -67,12 +67,6 @@ class Logging : public base::ObjectWatcher::Delegate { // ObjectWatcher::Delegate implementation void OnObjectSignaled(HANDLE object); - typedef void (LogFunction)(uint16 type, - std::wstring* name, - const Message* msg, - std::wstring* params); - void RegisterMessageLogger(int msg_start, LogFunction* func); - private: friend struct DefaultSingletonTraits; Logging(); @@ -96,8 +90,6 @@ class Logging : public base::ObjectWatcher::Delegate { MessageLoop* main_thread_; Consumer* consumer_; - - LogFunction* log_function_mapping_[LastMsgIndex]; }; } // namespace IPC -- cgit v1.1