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

Unified Diff: chrome/browser/metrics/metrics_log.cc

Issue 301633006: Move ChromeOS hardware class init out of MetricsService. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Response to review Created 6 years, 7 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/browser/metrics/metrics_log.cc
diff --git a/chrome/browser/metrics/metrics_log.cc b/chrome/browser/metrics/metrics_log.cc
index d9e11a823270879c13c0527925ce68a7118c38eb..6205c7b24bd523d7651c176f1f9095b2abdf73c3 100644
--- a/chrome/browser/metrics/metrics_log.cc
+++ b/chrome/browser/metrics/metrics_log.cc
@@ -341,6 +341,10 @@ void MetricsLog::RecordEnvironment(
system_profile->set_application_locale(client_->GetApplicationLocale());
+ // By default, the hardware class is empty (i.e., unknown).
+ uma_proto()->mutable_system_profile()->mutable_hardware()->set_hardware_class(
Alexei Svitkine (slow) 2014/05/28 18:45:57 Nit: you have a |hardware| section just below this
blundell 2014/05/28 18:59:49 Done.
+ std::string());
+
SystemProfileProto::Hardware* hardware = system_profile->mutable_hardware();
hardware->set_cpu_architecture(base::SysInfo::OperatingSystemArchitecture());
hardware->set_system_ram_mb(base::SysInfo::AmountOfPhysicalMemoryMB());

Powered by Google App Engine
This is Rietveld 408576698