| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "chrome/common/ipc_message.h" | |
| 6 | |
| 7 #ifdef IPC_MESSAGE_LOG_ENABLED | |
| 8 | |
| 9 // Preprocessor magic: render_messages.h defines the enums and debug string | |
| 10 // functions if this define is set. | |
| 11 #define IPC_MESSAGE_MACROS_LOG_ENABLED | |
| 12 | |
| 13 #endif // IPC_MESSAGE_LOG_ENABLED | |
| 14 | |
| 15 #include "chrome/common/render_messages.h" | |
| 16 | |
| 17 void RenderMessagesInit() { | |
| 18 #ifdef IPC_MESSAGE_LOG_ENABLED | |
| 19 IPC::RegisterMessageLogger(ViewStart, ViewMsgLog); | |
| 20 IPC::RegisterMessageLogger(ViewHostStart, ViewHostMsgLog); | |
| 21 #endif | |
| 22 } | |
| OLD | NEW |