OLD | NEW |
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 #import "chrome/browser/ui/cocoa/first_run_dialog.h" | 5 #import "chrome/browser/ui/cocoa/first_run_dialog.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/mac/bundle_locations.h" | 8 #include "base/mac/bundle_locations.h" |
9 #include "base/mac/mac_util.h" | 9 #include "base/mac/mac_util.h" |
10 #import "base/mac/scoped_nsobject.h" | 10 #import "base/mac/scoped_nsobject.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 #include "components/search_engines/template_url_service.h" | 21 #include "components/search_engines/template_url_service.h" |
22 #import "third_party/google_toolbox_for_mac/src/AppKit/GTMUILocalizerAndLayoutTw
eaker.h" | 22 #import "third_party/google_toolbox_for_mac/src/AppKit/GTMUILocalizerAndLayoutTw
eaker.h" |
23 #include "ui/base/l10n/l10n_util_mac.h" | 23 #include "ui/base/l10n/l10n_util_mac.h" |
24 #include "url/gurl.h" | 24 #include "url/gurl.h" |
25 | 25 |
26 #if defined(GOOGLE_CHROME_BUILD) | 26 #if defined(GOOGLE_CHROME_BUILD) |
27 #include "base/prefs/pref_service.h" | 27 #include "base/prefs/pref_service.h" |
28 #include "chrome/browser/browser_process.h" | 28 #include "chrome/browser/browser_process.h" |
29 #include "chrome/common/pref_names.h" | 29 #include "chrome/common/pref_names.h" |
30 #include "chrome/installer/util/google_update_settings.h" | 30 #include "chrome/installer/util/google_update_settings.h" |
31 #import "components/breakpad/app/breakpad_mac.h" | 31 #import "components/crash/app/breakpad_mac.h" |
32 #endif | 32 #endif |
33 | 33 |
34 @interface FirstRunDialogController (PrivateMethods) | 34 @interface FirstRunDialogController (PrivateMethods) |
35 // Show the dialog. | 35 // Show the dialog. |
36 - (void)show; | 36 - (void)show; |
37 @end | 37 @end |
38 | 38 |
39 namespace { | 39 namespace { |
40 | 40 |
41 // Compare function for -[NSArray sortedArrayUsingFunction:context:] that | 41 // Compare function for -[NSArray sortedArrayUsingFunction:context:] that |
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
288 [NSApp stopModal]; | 288 [NSApp stopModal]; |
289 } | 289 } |
290 | 290 |
291 - (IBAction)learnMore:(id)sender { | 291 - (IBAction)learnMore:(id)sender { |
292 NSString* urlStr = base::SysUTF8ToNSString(chrome::kLearnMoreReportingURL); | 292 NSString* urlStr = base::SysUTF8ToNSString(chrome::kLearnMoreReportingURL); |
293 NSURL* learnMoreUrl = [NSURL URLWithString:urlStr]; | 293 NSURL* learnMoreUrl = [NSURL URLWithString:urlStr]; |
294 [[NSWorkspace sharedWorkspace] openURL:learnMoreUrl]; | 294 [[NSWorkspace sharedWorkspace] openURL:learnMoreUrl]; |
295 } | 295 } |
296 | 296 |
297 @end | 297 @end |
OLD | NEW |