| OLD | NEW |
| 1 // Copyright (c) 2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2008 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/browser_main.h" | 5 #include "chrome/browser/browser_main.h" |
| 6 | 6 |
| 7 #import <Cocoa/Cocoa.h> | 7 #import <Cocoa/Cocoa.h> |
| 8 | 8 |
| 9 #include "app/app_switches.h" | 9 #include "app/app_switches.h" |
| 10 #include "app/l10n_util_mac.h" | 10 #include "app/l10n_util_mac.h" |
| 11 #include "app/resource_bundle.h" | 11 #include "app/resource_bundle.h" |
| 12 #include "base/command_line.h" | 12 #include "base/command_line.h" |
| 13 #include "base/debug_util.h" | 13 #include "base/debug_util.h" |
| 14 #include "chrome/app/breakpad_mac.h" | 14 #include "chrome/app/breakpad_mac.h" |
| 15 #import "chrome/app/keystone_glue.h" | |
| 16 #import "chrome/browser/app_controller_mac.h" | 15 #import "chrome/browser/app_controller_mac.h" |
| 17 #include "chrome/browser/browser_main_win.h" | 16 #include "chrome/browser/browser_main_win.h" |
| 18 #import "chrome/browser/chrome_browser_application_mac.h" | 17 #import "chrome/browser/chrome_browser_application_mac.h" |
| 18 #import "chrome/browser/cocoa/keystone_glue.h" |
| 19 #include "chrome/browser/metrics/metrics_service.h" | 19 #include "chrome/browser/metrics/metrics_service.h" |
| 20 #include "chrome/common/main_function_params.h" | 20 #include "chrome/common/main_function_params.h" |
| 21 #include "chrome/common/result_codes.h" | 21 #include "chrome/common/result_codes.h" |
| 22 | 22 |
| 23 namespace Platform { | 23 namespace Platform { |
| 24 | 24 |
| 25 // Tell Cooca to finish its initalization, which we want to do manually | 25 // Tell Cooca to finish its initalization, which we want to do manually |
| 26 // instead of calling NSApplicationMain(). The primary reason is that NSAM() | 26 // instead of calling NSApplicationMain(). The primary reason is that NSAM() |
| 27 // never returns, which would leave all the objects currently on the stack | 27 // never returns, which would leave all the objects currently on the stack |
| 28 // in scoped_ptrs hanging and never cleaned up. We then load the main nib | 28 // in scoped_ptrs hanging and never cleaned up. We then load the main nib |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 int HandleIconsCommands(const CommandLine& parsed_command_line) { | 79 int HandleIconsCommands(const CommandLine& parsed_command_line) { |
| 80 return 0; | 80 return 0; |
| 81 } | 81 } |
| 82 | 82 |
| 83 bool CheckMachineLevelInstall() { | 83 bool CheckMachineLevelInstall() { |
| 84 return false; | 84 return false; |
| 85 } | 85 } |
| 86 | 86 |
| 87 void PrepareRestartOnCrashEnviroment(const CommandLine& parsed_command_line) { | 87 void PrepareRestartOnCrashEnviroment(const CommandLine& parsed_command_line) { |
| 88 } | 88 } |
| OLD | NEW |