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

Side by Side Diff: chrome/common/platform_util_mac.mm

Issue 479006: re-apply r34183... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years 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
« no previous file with comments | « chrome/common/platform_util_linux.cc ('k') | chrome/common/platform_util_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/common/platform_util.h" 5 #include "chrome/common/platform_util.h"
6 6
7 #import <Cocoa/Cocoa.h> 7 #import <Cocoa/Cocoa.h>
8 8
9 #include "app/l10n_util.h" 9 #include "app/l10n_util.h"
10 #include "app/l10n_util_mac.h" 10 #include "app/l10n_util_mac.h"
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 const string16& title, 77 const string16& title,
78 const string16& message) { 78 const string16& message) {
79 NSAlert* alert = [[[NSAlert alloc] init] autorelease]; 79 NSAlert* alert = [[[NSAlert alloc] init] autorelease];
80 [alert addButtonWithTitle:l10n_util::GetNSString(IDS_OK)]; 80 [alert addButtonWithTitle:l10n_util::GetNSString(IDS_OK)];
81 [alert setMessageText:base::SysUTF16ToNSString(title)]; 81 [alert setMessageText:base::SysUTF16ToNSString(title)];
82 [alert setInformativeText:base::SysUTF16ToNSString(message)]; 82 [alert setInformativeText:base::SysUTF16ToNSString(message)];
83 [alert setAlertStyle:NSWarningAlertStyle]; 83 [alert setAlertStyle:NSWarningAlertStyle];
84 [alert runModal]; 84 [alert runModal];
85 } 85 }
86 86
87 RendererPreferences GetInitedRendererPreferences() {
88 return RendererPreferences();
89 }
90
91 } // namespace platform_util 87 } // namespace platform_util
OLDNEW
« no previous file with comments | « chrome/common/platform_util_linux.cc ('k') | chrome/common/platform_util_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698