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

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

Issue 2221833005: Adding support for sampling crashes in Chrome on Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: scottmg's comments, adding DCHECK Created 4 years, 4 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 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/content/app/crash_reporter_client.h" 5 #include "components/crash/content/app/crash_reporter_client.h"
6 6
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 8
9 // On Windows don't use FilePath and logging.h. 9 // On Windows don't use FilePath and logging.h.
10 // http://crbug.com/604923 10 // http://crbug.com/604923
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 } 115 }
116 116
117 bool CrashReporterClient::IsRunningUnattended() { 117 bool CrashReporterClient::IsRunningUnattended() {
118 return true; 118 return true;
119 } 119 }
120 120
121 bool CrashReporterClient::GetCollectStatsConsent() { 121 bool CrashReporterClient::GetCollectStatsConsent() {
122 return false; 122 return false;
123 } 123 }
124 124
125 bool CrashReporterClient::GetCollectStatsInSample() {
126 // By default, clients don't do sampling, so everything will be "in-sample".
127 return true;
128 }
129
125 #if defined(OS_WIN) || defined(OS_MACOSX) 130 #if defined(OS_WIN) || defined(OS_MACOSX)
126 bool CrashReporterClient::ReportingIsEnforcedByPolicy(bool* breakpad_enabled) { 131 bool CrashReporterClient::ReportingIsEnforcedByPolicy(bool* breakpad_enabled) {
127 return false; 132 return false;
128 } 133 }
129 #endif 134 #endif
130 135
131 #if defined(OS_ANDROID) 136 #if defined(OS_ANDROID)
132 int CrashReporterClient::GetAndroidMinidumpDescriptor() { 137 int CrashReporterClient::GetAndroidMinidumpDescriptor() {
133 return 0; 138 return 0;
134 } 139 }
(...skipping 12 matching lines...) Expand all
147 #endif 152 #endif
148 } 153 }
149 #endif 154 #endif
150 155
151 bool CrashReporterClient::EnableBreakpadForProcess( 156 bool CrashReporterClient::EnableBreakpadForProcess(
152 const std::string& process_type) { 157 const std::string& process_type) {
153 return false; 158 return false;
154 } 159 }
155 160
156 } // namespace crash_reporter 161 } // namespace crash_reporter
OLDNEW
« no previous file with comments | « components/crash/content/app/crash_reporter_client.h ('k') | components/crash/content/app/crashpad.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698