summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/cocoa/about_ipc_bridge.mm
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/ui/cocoa/about_ipc_bridge.mm')
-rw-r--r--chrome/browser/ui/cocoa/about_ipc_bridge.mm21
1 files changed, 21 insertions, 0 deletions
diff --git a/chrome/browser/ui/cocoa/about_ipc_bridge.mm b/chrome/browser/ui/cocoa/about_ipc_bridge.mm
new file mode 100644
index 0000000..7a7f41f
--- /dev/null
+++ b/chrome/browser/ui/cocoa/about_ipc_bridge.mm
@@ -0,0 +1,21 @@
+// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/ui/cocoa/about_ipc_bridge.h"
+#include "chrome/browser/ui/cocoa/about_ipc_controller.h"
+
+#if defined(IPC_MESSAGE_LOG_ENABLED)
+
+void AboutIPCBridge::Log(const IPC::LogData& data) {
+ CocoaLogData* cocoa_data = [[CocoaLogData alloc] initWithLogData:data];
+ if ([NSThread isMainThread]) {
+ [controller_ log:cocoa_data];
+ } else {
+ [controller_ performSelectorOnMainThread:@selector(log:)
+ withObject:cocoa_data
+ waitUntilDone:NO];
+ }
+}
+
+#endif