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 #include "chrome/browser/chrome_browser_main_mac.h" | 5 #include "chrome/browser/chrome_browser_main_mac.h" |
6 | 6 |
7 #import <Cocoa/Cocoa.h> | 7 #import <Cocoa/Cocoa.h> |
8 #include <sys/sysctl.h> | 8 #include <sys/sysctl.h> |
9 | 9 |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
12 #include "base/mac/bundle_locations.h" | 12 #include "base/mac/bundle_locations.h" |
13 #include "base/mac/mac_util.h" | 13 #include "base/mac/mac_util.h" |
14 #include "base/mac/scoped_nsobject.h" | 14 #include "base/mac/scoped_nsobject.h" |
15 #include "base/metrics/histogram.h" | 15 #include "base/metrics/histogram.h" |
16 #include "base/path_service.h" | 16 #include "base/path_service.h" |
17 #import "chrome/browser/app_controller_mac.h" | 17 #import "chrome/browser/app_controller_mac.h" |
18 #include "chrome/browser/browser_process.h" | 18 #include "chrome/browser/browser_process.h" |
19 #import "chrome/browser/chrome_browser_application_mac.h" | 19 #import "chrome/browser/chrome_browser_application_mac.h" |
20 #include "chrome/browser/mac/install_from_dmg.h" | 20 #include "chrome/browser/mac/install_from_dmg.h" |
21 #include "chrome/browser/mac/keychain_reauthorize.h" | 21 #include "chrome/browser/mac/keychain_reauthorize.h" |
22 #import "chrome/browser/mac/keystone_glue.h" | 22 #import "chrome/browser/mac/keystone_glue.h" |
23 #include "chrome/browser/metrics/metrics_service.h" | 23 #include "chrome/browser/metrics/metrics_service.h" |
24 #include "chrome/common/chrome_paths.h" | 24 #include "chrome/common/chrome_paths.h" |
25 #include "chrome/common/chrome_switches.h" | 25 #include "chrome/common/chrome_switches.h" |
26 #include "components/breakpad/breakpad_mac.h" | 26 #include "components/breakpad/app/breakpad_mac.h" |
27 #include "content/public/common/main_function_params.h" | 27 #include "content/public/common/main_function_params.h" |
28 #include "content/public/common/result_codes.h" | 28 #include "content/public/common/result_codes.h" |
29 #include "ui/base/l10n/l10n_util_mac.h" | 29 #include "ui/base/l10n/l10n_util_mac.h" |
30 #include "ui/base/resource/resource_bundle.h" | 30 #include "ui/base/resource/resource_bundle.h" |
31 #include "ui/base/resource/resource_handle.h" | 31 #include "ui/base/resource/resource_handle.h" |
32 | 32 |
33 namespace { | 33 namespace { |
34 | 34 |
35 // Some users rarely restart Chrome, so they might never get a chance to run | 35 // Some users rarely restart Chrome, so they might never get a chance to run |
36 // the at-launch KeychainReauthorize. To account for them, there's also an | 36 // the at-launch KeychainReauthorize. To account for them, there's also an |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
269 void ChromeBrowserMainPartsMac::PostProfileInit() { | 269 void ChromeBrowserMainPartsMac::PostProfileInit() { |
270 ChromeBrowserMainPartsPosix::PostProfileInit(); | 270 ChromeBrowserMainPartsPosix::PostProfileInit(); |
271 g_browser_process->metrics_service()->RecordBreakpadRegistration( | 271 g_browser_process->metrics_service()->RecordBreakpadRegistration( |
272 breakpad::IsCrashReporterEnabled()); | 272 breakpad::IsCrashReporterEnabled()); |
273 } | 273 } |
274 | 274 |
275 void ChromeBrowserMainPartsMac::DidEndMainMessageLoop() { | 275 void ChromeBrowserMainPartsMac::DidEndMainMessageLoop() { |
276 AppController* appController = [NSApp delegate]; | 276 AppController* appController = [NSApp delegate]; |
277 [appController didEndMainMessageLoop]; | 277 [appController didEndMainMessageLoop]; |
278 } | 278 } |
OLD | NEW |