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

Side by Side Diff: components/crash/app/crash_reporter_client.cc

Issue 1000203007: Set a "metrics_client_id" crash key instead of "guid" on Mac OS X (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove sentencelet Created 5 years, 9 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
« no previous file with comments | « components/crash/app/crash_reporter_client.h ('k') | components/crash/app/crashpad_mac.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "components/crash/app/crash_reporter_client.h" 5 #include "components/crash/app/crash_reporter_client.h"
6 6
7 #include "base/files/file_path.h" 7 #include "base/files/file_path.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 9
10 namespace crash_reporter { 10 namespace crash_reporter {
11 11
12 namespace { 12 namespace {
13 13
14 CrashReporterClient* g_client = NULL; 14 CrashReporterClient* g_client = NULL;
15 15
16 } // namespace 16 } // namespace
17 17
18 void SetCrashReporterClient(CrashReporterClient* client) { 18 void SetCrashReporterClient(CrashReporterClient* client) {
19 g_client = client; 19 g_client = client;
20 } 20 }
21 21
22 CrashReporterClient* GetCrashReporterClient() { 22 CrashReporterClient* GetCrashReporterClient() {
23 DCHECK(g_client); 23 DCHECK(g_client);
24 return g_client; 24 return g_client;
25 } 25 }
26 26
27 CrashReporterClient::CrashReporterClient() {} 27 CrashReporterClient::CrashReporterClient() {}
28 CrashReporterClient::~CrashReporterClient() {} 28 CrashReporterClient::~CrashReporterClient() {}
29 29
30 #if !defined(OS_MACOSX)
30 void CrashReporterClient::SetCrashReporterClientIdFromGUID( 31 void CrashReporterClient::SetCrashReporterClientIdFromGUID(
31 const std::string& client_guid) { 32 const std::string& client_guid) {
32 } 33 }
34 #endif
33 35
34 #if defined(OS_WIN) 36 #if defined(OS_WIN)
35 bool CrashReporterClient::GetAlternativeCrashDumpLocation( 37 bool CrashReporterClient::GetAlternativeCrashDumpLocation(
36 base::FilePath* crash_dir) { 38 base::FilePath* crash_dir) {
37 return false; 39 return false;
38 } 40 }
39 41
40 void CrashReporterClient::GetProductNameAndVersion( 42 void CrashReporterClient::GetProductNameAndVersion(
41 const base::FilePath& exe_path, 43 const base::FilePath& exe_path,
42 base::string16* product_name, 44 base::string16* product_name,
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 #endif 135 #endif
134 } 136 }
135 #endif 137 #endif
136 138
137 bool CrashReporterClient::EnableBreakpadForProcess( 139 bool CrashReporterClient::EnableBreakpadForProcess(
138 const std::string& process_type) { 140 const std::string& process_type) {
139 return false; 141 return false;
140 } 142 }
141 143
142 } // namespace crash_reporter 144 } // namespace crash_reporter
OLDNEW
« no previous file with comments | « components/crash/app/crash_reporter_client.h ('k') | components/crash/app/crashpad_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698