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

Unified Diff: chrome/install_static/install_util.cc

Issue 2422103004: Adding sampling support to installer crash reporter client. (Closed)
Patch Set: braces Created 4 years, 2 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.h ('k') | chrome/installer/setup/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/install_static/install_util.cc
diff --git a/chrome/install_static/install_util.cc b/chrome/install_static/install_util.cc
index 10e187d6b547e129917534e401c99e93a3b8d08c..fc7f95fd5a00f97bd023a78bf474340bac53b538 100644
--- a/chrome/install_static/install_util.cc
+++ b/chrome/install_static/install_util.cc
@@ -45,6 +45,7 @@ const wchar_t kRegPathClientStateMedium[] =
const wchar_t kRegPathChromePolicy[] = L"SOFTWARE\\Policies\\Chromium";
#endif
+const wchar_t kRegValueChromeStatsSample[] = L"UsageStatsInSample";
const wchar_t kRegValueUsageStats[] = L"usagestats";
const wchar_t kUninstallArgumentsField[] = L"UninstallArguments";
const wchar_t kMetricsReportingEnabled[] = L"MetricsReportingEnabled";
@@ -87,14 +88,6 @@ const wchar_t kBrowserCrashDumpMetricsSubKey[] = L"\\BrowserCrashDumpAttempts";
const wchar_t kRegPathGoogleUpdate[] = L"Software\\Google\\Update";
const wchar_t kRegGoogleUpdateVersion[] = L"version";
-// Registry key to store the stats/crash sampling state of Chrome. If set to 1,
-// stats and crash reports will be uploaded in line with the user's consent,
-// otherwise, uploads will be disabled. It is used to sample clients, to reduce
-// server load for metics and crashes. This is controlled by the
-// MetricsReporting feature in chrome_metrics_services_manager_client.cc and is
-// written when metrics services are started up and when consent changes.
-const wchar_t kRegValueChromeStatsSample[] = L"UsageStatsInSample";
-
void Trace(const wchar_t* format_string, ...) {
static const int kMaxLogBufferSize = 1024;
static wchar_t buffer[kMaxLogBufferSize] = {};
« no previous file with comments | « chrome/install_static/install_util.h ('k') | chrome/installer/setup/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698