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

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

Issue 498773003: Use a qualified path for chromium_strings, google_chrome_strings, and generated_resources. (part 2 … (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 3 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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/browser/ui/simple_message_box.h" 5 #include "chrome/browser/ui/simple_message_box.h"
6 6
7 #import <Cocoa/Cocoa.h> 7 #import <Cocoa/Cocoa.h>
8 8
9 #include "base/strings/sys_string_conversions.h" 9 #include "base/strings/sys_string_conversions.h"
10 #include "chrome/grit/generated_resources.h"
10 #include "components/startup_metric_utils/startup_metric_utils.h" 11 #include "components/startup_metric_utils/startup_metric_utils.h"
11 #include "grit/generated_resources.h"
12 #include "ui/base/l10n/l10n_util_mac.h" 12 #include "ui/base/l10n/l10n_util_mac.h"
13 13
14 namespace chrome { 14 namespace chrome {
15 15
16 MessageBoxResult ShowMessageBox(gfx::NativeWindow parent, 16 MessageBoxResult ShowMessageBox(gfx::NativeWindow parent,
17 const base::string16& title, 17 const base::string16& title,
18 const base::string16& message, 18 const base::string16& message,
19 MessageBoxType type) { 19 MessageBoxType type) {
20 if (type == MESSAGE_BOX_TYPE_OK_CANCEL) 20 if (type == MESSAGE_BOX_TYPE_OK_CANCEL)
21 NOTIMPLEMENTED(); 21 NOTIMPLEMENTED();
(...skipping 13 matching lines...) Expand all
35 l10n_util::GetNSString(IDS_CONFIRM_MESSAGEBOX_NO_BUTTON_LABEL)]; 35 l10n_util::GetNSString(IDS_CONFIRM_MESSAGEBOX_NO_BUTTON_LABEL)];
36 } else { 36 } else {
37 [alert addButtonWithTitle:l10n_util::GetNSString(IDS_OK)]; 37 [alert addButtonWithTitle:l10n_util::GetNSString(IDS_OK)];
38 } 38 }
39 NSInteger result = [alert runModal]; 39 NSInteger result = [alert runModal];
40 return (result == NSAlertSecondButtonReturn) ? 40 return (result == NSAlertSecondButtonReturn) ?
41 MESSAGE_BOX_RESULT_NO : MESSAGE_BOX_RESULT_YES; 41 MESSAGE_BOX_RESULT_NO : MESSAGE_BOX_RESULT_YES;
42 } 42 }
43 43
44 } // namespace chrome 44 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698