OLD | NEW |
| (Empty) |
1 // Copyright (c) 2009 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/browser/ui/cocoa/about_ipc_bridge.h" | |
6 #include "chrome/browser/ui/cocoa/about_ipc_controller.h" | |
7 | |
8 #if defined(IPC_MESSAGE_LOG_ENABLED) | |
9 | |
10 void AboutIPCBridge::Log(const IPC::LogData& data) { | |
11 CocoaLogData* cocoa_data = [[CocoaLogData alloc] initWithLogData:data]; | |
12 if ([NSThread isMainThread]) { | |
13 [controller_ log:cocoa_data]; | |
14 } else { | |
15 [controller_ performSelectorOnMainThread:@selector(log:) | |
16 withObject:cocoa_data | |
17 waitUntilDone:NO]; | |
18 } | |
19 } | |
20 | |
21 #endif | |
OLD | NEW |