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" | |
10 #import "base/mac/scoped_nsobject.h" | 9 #import "base/mac/scoped_nsobject.h" |
11 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
12 #include "base/message_loop/message_loop.h" | 11 #include "base/message_loop/message_loop.h" |
13 #include "base/strings/sys_string_conversions.h" | 12 #include "base/strings/sys_string_conversions.h" |
14 #include "chrome/browser/first_run/first_run.h" | 13 #include "chrome/browser/first_run/first_run.h" |
15 #include "chrome/browser/first_run/first_run_dialog.h" | 14 #include "chrome/browser/first_run/first_run_dialog.h" |
16 #include "chrome/browser/profiles/profile.h" | 15 #include "chrome/browser/profiles/profile.h" |
17 #include "chrome/browser/search_engines/template_url_service_factory.h" | 16 #include "chrome/browser/search_engines/template_url_service_factory.h" |
18 #include "chrome/browser/shell_integration.h" | 17 #include "chrome/browser/shell_integration.h" |
19 #include "chrome/common/chrome_version_info.h" | 18 #include "chrome/common/chrome_version_info.h" |
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
288 [NSApp stopModal]; | 287 [NSApp stopModal]; |
289 } | 288 } |
290 | 289 |
291 - (IBAction)learnMore:(id)sender { | 290 - (IBAction)learnMore:(id)sender { |
292 NSString* urlStr = base::SysUTF8ToNSString(chrome::kLearnMoreReportingURL); | 291 NSString* urlStr = base::SysUTF8ToNSString(chrome::kLearnMoreReportingURL); |
293 NSURL* learnMoreUrl = [NSURL URLWithString:urlStr]; | 292 NSURL* learnMoreUrl = [NSURL URLWithString:urlStr]; |
294 [[NSWorkspace sharedWorkspace] openURL:learnMoreUrl]; | 293 [[NSWorkspace sharedWorkspace] openURL:learnMoreUrl]; |
295 } | 294 } |
296 | 295 |
297 @end | 296 @end |
OLD | NEW |