blob: 6921ec368e980d6b2e792c05183be83f8cfb1bf3 (
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
|
// Copyright 2013 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 "components/breakpad/breakpad_client.h"
#include "base/files/file_path.h"
#include "base/logging.h"
namespace breakpad {
namespace {
BreakpadClient* g_client = NULL;
} // namespace
void SetBreakpadClient(BreakpadClient* client) {
g_client = client;
}
BreakpadClient* GetBreakpadClient() {
DCHECK(g_client);
return g_client;
}
BreakpadClient::BreakpadClient() {}
BreakpadClient::~BreakpadClient() {}
#if defined(OS_WIN)
bool BreakpadClient::GetAlternativeCrashDumpLocation(
base::FilePath* crash_dir) {
return false;
}
void BreakpadClient::GetProductNameAndVersion(const base::FilePath& exe_path,
base::string16* product_name,
base::string16* version,
base::string16* special_build,
base::string16* channel_name) {
}
bool BreakpadClient::ShouldShowRestartDialog(base::string16* title,
base::string16* message,
bool* is_rtl_locale) {
return false;
}
bool BreakpadClient::AboutToRestart() {
return true;
}
base::string16 BreakpadClient::GetCrashGUID() {
return base::string16();
}
bool BreakpadClient::GetDeferredUploadsSupported(bool is_per_usr_install) {
return false;
}
bool BreakpadClient::GetIsPerUserInstall(const base::FilePath& exe_path) {
return false;
}
bool BreakpadClient::GetShouldDumpLargerDumps(bool is_per_user_install) {
return false;
}
int BreakpadClient::GetResultCodeRespawnFailed() {
return 0;
}
#endif
#if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_IOS)
void BreakpadClient::GetProductNameAndVersion(std::string* product_name,
std::string* version) {
}
base::FilePath BreakpadClient::GetReporterLogFilename() {
return base::FilePath();
}
#endif
bool BreakpadClient::GetCrashDumpLocation(base::FilePath* crash_dir) {
return false;
}
#if defined(OS_POSIX)
void BreakpadClient::SetDumpWithoutCrashingFunction(void (*function)()) {
}
#endif
size_t BreakpadClient::RegisterCrashKeys() {
return 0;
}
bool BreakpadClient::IsRunningUnattended() {
return false;
}
#if defined(OS_WIN) || defined(OS_MACOSX)
bool BreakpadClient::GetCollectStatsConsent() {
return false;
}
#endif
} // namespace breakpad
|