blob: e27fe0bfd083728ada96b05f739db798026c50cb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
// Copyright (c) 2008 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/browser_main.h"
#include "base/command_line.h"
#include "base/debug_util.h"
#include "chrome/browser/browser_main_win.h"
#include "chrome/browser/metrics/metrics_service.h"
#include "chrome/common/result_codes.h"
#if defined(USE_LINUX_BREAKPAD)
#include "chrome/app/breakpad_linux.h"
#endif
namespace Platform {
void WillInitializeMainMessageLoop(const MainFunctionParams& parameters) {
}
void DidEndMainMessageLoop() {
}
void RecordBreakpadStatusUMA(MetricsService* metrics) {
#if defined(USE_LINUX_BREAKPAD)
metrics->RecordBreakpadRegistration(IsCrashReporterEnabled());
#else
metrics->RecordBreakpadRegistration(false);
#endif
metrics->RecordBreakpadHasDebugger(DebugUtil::BeingDebugged());
}
} // namespace Platform
// From browser_main_win.h, stubs until we figure out the right thing...
int DoUninstallTasks(bool chrome_still_running) {
return ResultCodes::NORMAL_EXIT;
}
bool DoUpgradeTasks(const CommandLine& command_line) {
return ResultCodes::NORMAL_EXIT;
}
bool CheckForWin2000() {
return false;
}
int HandleIconsCommands(const CommandLine &parsed_command_line) {
return 0;
}
bool CheckMachineLevelInstall() {
return false;
}
void PrepareRestartOnCrashEnviroment(const CommandLine &parsed_command_line) {
}
|