Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(133)

Side by Side Diff: chrome/installer/setup/installer_crash_reporting.cc

Issue 2867063002: Stability instrumentation Crashpad integration (Closed)
Patch Set: process type: auto init + crashpad handler type Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/installer/setup/installer_crash_reporting.h" 5 #include "chrome/installer/setup/installer_crash_reporting.h"
6 6
7 #include <iterator> 7 #include <iterator>
8 #include <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 base::FilePath crash_dir = temp_dir.Append(FILE_PATH_LITERAL("Crashpad")); 87 base::FilePath crash_dir = temp_dir.Append(FILE_PATH_LITERAL("Crashpad"));
88 PathService::OverrideAndCreateIfNeeded(chrome::DIR_CRASH_DUMPS, crash_dir, 88 PathService::OverrideAndCreateIfNeeded(chrome::DIR_CRASH_DUMPS, crash_dir,
89 true, true); 89 true, true);
90 } else { 90 } else {
91 // Failed to get a temp dir, something's gone wrong. 91 // Failed to get a temp dir, something's gone wrong.
92 return; 92 return;
93 } 93 }
94 } 94 }
95 95
96 crash_reporter::InitializeCrashpadWithEmbeddedHandler(true, 96 crash_reporter::InitializeCrashpadWithEmbeddedHandler(true,
97 "Chrome Installer"); 97 "Chrome Installer", "");
98 98
99 // Set up the metrics client id (a la child_process_logging::Init()). 99 // Set up the metrics client id (a la child_process_logging::Init()).
100 std::unique_ptr<metrics::ClientInfo> client_info = 100 std::unique_ptr<metrics::ClientInfo> client_info =
101 GoogleUpdateSettings::LoadMetricsClientInfo(); 101 GoogleUpdateSettings::LoadMetricsClientInfo();
102 if (client_info) 102 if (client_info)
103 crash_keys::SetMetricsClientIdFromGUID(client_info->client_id); 103 crash_keys::SetMetricsClientIdFromGUID(client_info->client_id);
104 } 104 }
105 105
106 size_t RegisterCrashKeys() { 106 size_t RegisterCrashKeys() {
107 static constexpr base::debug::CrashKey kFixedKeys[] = { 107 static constexpr base::debug::CrashKey kFixedKeys[] = {
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 void SetCurrentVersionCrashKey(const base::Version* current_version) { 151 void SetCurrentVersionCrashKey(const base::Version* current_version) {
152 if (current_version) { 152 if (current_version) {
153 base::debug::SetCrashKeyValue(kCurrentVersion, 153 base::debug::SetCrashKeyValue(kCurrentVersion,
154 current_version->GetString()); 154 current_version->GetString());
155 } else { 155 } else {
156 base::debug::ClearCrashKey(kCurrentVersion); 156 base::debug::ClearCrashKey(kCurrentVersion);
157 } 157 }
158 } 158 }
159 159
160 } // namespace installer 160 } // namespace installer
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698