blob: cec9ea9ab86af599596e4fdfd138d1ace0a0b6ba (
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
|
// Copyright 2016 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 "blimp/engine/app/blimp_engine_crash_reporter_client.h"
#include "blimp/engine/app/blimp_engine_crash_keys.h"
#include "components/crash/core/common/crash_keys.h"
#include "components/version_info/version_info_values.h"
#include "content/public/common/content_switches.h"
namespace blimp {
namespace engine {
BlimpEngineCrashReporterClient::BlimpEngineCrashReporterClient() {}
BlimpEngineCrashReporterClient::~BlimpEngineCrashReporterClient() {}
void BlimpEngineCrashReporterClient::SetCrashReporterClientIdFromGUID(
const std::string& client_guid) {
::crash_keys::SetMetricsClientIdFromGUID(client_guid);
}
void BlimpEngineCrashReporterClient::GetProductNameAndVersion(
const char** product_name,
const char** version) {
*product_name = "Chrome_Blimp_Engine";
*version = PRODUCT_VERSION;
}
size_t BlimpEngineCrashReporterClient::RegisterCrashKeys() {
return RegisterEngineCrashKeys();
}
bool BlimpEngineCrashReporterClient::IsRunningUnattended() {
// If this returns "true," crash reports will not be uploaded. For now the
// engine will not be running unattended. Eventually when automated testing
// harnesses are set up, this should be changed to return "true" in those
// cases.
return false;
}
bool BlimpEngineCrashReporterClient::GetCollectStatsConsent() {
// Always collect Blimp engine crash reports.
return true;
}
bool BlimpEngineCrashReporterClient::EnableBreakpadForProcess(
const std::string& process_type) {
return process_type == ::switches::kRendererProcess ||
process_type == ::switches::kPluginProcess ||
process_type == ::switches::kPpapiPluginProcess ||
process_type == ::switches::kZygoteProcess ||
process_type == ::switches::kGpuProcess;
}
} // namespace engine
} // namespace blimp
|