| Index: chrome/browser/ui/cocoa/about_ipc_dialog.mm
|
| diff --git a/chrome/browser/ui/cocoa/about_ipc_dialog.mm b/chrome/browser/ui/cocoa/about_ipc_dialog.mm
|
| index 7715f24780f90f8a4c008921a8933e3dc81dc730..0a398ac212aecbf45ef4f7709ab3049ffc478534 100644
|
| --- a/chrome/browser/ui/cocoa/about_ipc_dialog.mm
|
| +++ b/chrome/browser/ui/cocoa/about_ipc_dialog.mm
|
| @@ -1,4 +1,4 @@
|
| -// Copyright (c) 2009 The Chromium Authors. All rights reserved.
|
| +// Copyright (c) 2011 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.
|
|
|
| @@ -16,6 +16,17 @@ void RunDialog() {
|
| [[controller window] makeKeyAndOrderFront:controller];
|
| }
|
|
|
| -}; // namespace AboutIPCDialog
|
| +} // namespace AboutIPCDialog
|
| +
|
| +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 // IPC_MESSAGE_LOG_ENABLED
|
|
|