Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Side by Side Diff: chrome/browser/ui/cocoa/about_ipc_bridge.mm

Issue 6265015: [Mac] Merge single-function file about_ipc_dialog.{h,mm} into about_ipc_bridge.{h,mm}. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: '' Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/about_ipc_bridge.h ('k') | chrome/browser/ui/cocoa/about_ipc_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698