| 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 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/debug_util.h" |
| 8 #include "chrome/browser/browser_main_win.h" | 9 #include "chrome/browser/browser_main_win.h" |
| 10 #include "chrome/browser/metrics/metrics_service.h" |
| 9 #include "chrome/common/result_codes.h" | 11 #include "chrome/common/result_codes.h" |
| 10 | 12 |
| 13 #if defined(USE_LINUX_BREAKPAD) |
| 14 #include "chrome/app/breakpad_linux.h" |
| 15 #endif |
| 16 |
| 11 namespace Platform { | 17 namespace Platform { |
| 12 | 18 |
| 13 void WillInitializeMainMessageLoop(const MainFunctionParams& parameters) { | 19 void WillInitializeMainMessageLoop(const MainFunctionParams& parameters) { |
| 14 } | 20 } |
| 15 | 21 |
| 16 void DidEndMainMessageLoop() { | 22 void DidEndMainMessageLoop() { |
| 17 } | 23 } |
| 18 | 24 |
| 19 void RecordBreakpadStatusUMA(MetricsService* metrics) { | 25 void RecordBreakpadStatusUMA(MetricsService* metrics) { |
| 20 // TODO(port): http://crbug.com/21732 | 26 #if defined(USE_LINUX_BREAKPAD) |
| 27 metrics->RecordBreakpadRegistration(IsCrashReporterEnabled()); |
| 28 #else |
| 29 metrics->RecordBreakpadRegistration(false); |
| 30 #endif |
| 31 metrics->RecordBreakpadHasDebugger(DebugUtil::BeingDebugged()); |
| 21 } | 32 } |
| 22 | 33 |
| 23 } // namespace Platform | 34 } // namespace Platform |
| 24 | 35 |
| 25 // From browser_main_win.h, stubs until we figure out the right thing... | 36 // From browser_main_win.h, stubs until we figure out the right thing... |
| 26 | 37 |
| 27 int DoUninstallTasks(bool chrome_still_running) { | 38 int DoUninstallTasks(bool chrome_still_running) { |
| 28 return ResultCodes::NORMAL_EXIT; | 39 return ResultCodes::NORMAL_EXIT; |
| 29 } | 40 } |
| 30 | 41 |
| 31 bool DoUpgradeTasks(const CommandLine& command_line) { | 42 bool DoUpgradeTasks(const CommandLine& command_line) { |
| 32 return ResultCodes::NORMAL_EXIT; | 43 return ResultCodes::NORMAL_EXIT; |
| 33 } | 44 } |
| 34 | 45 |
| 35 bool CheckForWin2000() { | 46 bool CheckForWin2000() { |
| 36 return false; | 47 return false; |
| 37 } | 48 } |
| 38 | 49 |
| 39 int HandleIconsCommands(const CommandLine &parsed_command_line) { | 50 int HandleIconsCommands(const CommandLine &parsed_command_line) { |
| 40 return 0; | 51 return 0; |
| 41 } | 52 } |
| 42 | 53 |
| 43 bool CheckMachineLevelInstall() { | 54 bool CheckMachineLevelInstall() { |
| 44 return false; | 55 return false; |
| 45 } | 56 } |
| 46 | 57 |
| 47 void PrepareRestartOnCrashEnviroment(const CommandLine &parsed_command_line) { | 58 void PrepareRestartOnCrashEnviroment(const CommandLine &parsed_command_line) { |
| 48 } | 59 } |
| OLD | NEW |