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

Unified Diff: components/crash/content/app/crash_reporter_client.h

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/install_static/install_util.cc ('k') | components/crash/content/app/crash_reporter_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/crash/content/app/crash_reporter_client.h
diff --git a/components/crash/content/app/crash_reporter_client.h b/components/crash/content/app/crash_reporter_client.h
index 157ba53e1361493bcc4632caafa01b0052d8c4ea..392775970115c5a6adc6a0bda7c51c145a6c07ed 100644
--- a/components/crash/content/app/crash_reporter_client.h
+++ b/components/crash/content/app/crash_reporter_client.h
@@ -138,6 +138,11 @@ class CrashReporterClient {
// Returns true if the user has given consent to collect stats.
virtual bool GetCollectStatsConsent();
+ // Returns true if the client is currently in the chosen sample that will
+ // report stats and crashes. Crashes should only be reported if this function
+ // returns true and GetCollectStatsConsent returns true.
+ virtual bool GetCollectStatsInSample();
+
#if defined(OS_WIN) || defined(OS_MACOSX)
// Returns true if crash reporting is enforced via management policies. In
// that case, |breakpad_enabled| is set to the value enforced by policies.
« no previous file with comments | « chrome/install_static/install_util.cc ('k') | components/crash/content/app/crash_reporter_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698