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

Unified Diff: chrome/install_static/install_util.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: rkaplow's comments 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
Index: chrome/install_static/install_util.h
diff --git a/chrome/install_static/install_util.h b/chrome/install_static/install_util.h
index be2a99d4751a49c8509b9b5559afe9b048bcb455..b2ffcbebccd3e71061fab03ce0ac9eba5537d802 100644
--- a/chrome/install_static/install_util.h
+++ b/chrome/install_static/install_util.h
@@ -41,6 +41,9 @@ extern const wchar_t kAppGuidCanary[];
extern const wchar_t kAppGuidGoogleChrome[];
extern const wchar_t kAppGuidGoogleBinaries[];
+extern const wchar_t kChromeMetrics[];
+extern const wchar_t kChromeStatsSampleKey[];
+
// TODO(ananta)
// https://crbug.com/604923
// Unify these constants with env_vars.h.
@@ -78,6 +81,10 @@ bool GetCollectStatsConsent();
// Only used by tests.
bool GetCollectStatsConsentForTesting(const std::wstring& exe_path);
+// Returns true if the current executable is curretnly in the chosen sample that
scottmg 2016/08/11 21:38:03 currently
jwd 2016/08/11 22:02:53 Done.
+// will report stats and crashes.
+bool GetCollectStatsInSample();
+
// Returns true if if usage stats reporting is controlled by a mandatory
// policy. |metrics_is_enforced_by_policy| will be set to true accordingly.
// TODO(ananta)

Powered by Google App Engine
This is Rietveld 408576698