summaryrefslogtreecommitdiff
path: root/chromium/components/metrics/metrics_log.cc
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@theqtcompany.com>2016-08-01 12:59:39 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2016-08-04 12:40:43 +0000
commit28b1110370900897ab652cb420c371fab8857ad4 (patch)
tree41b32127d23b0df4f2add2a27e12dc87bddb260e /chromium/components/metrics/metrics_log.cc
parent399c965b6064c440ddcf4015f5f8e9d131c7a0a6 (diff)
downloadqtwebengine-chromium-28b1110370900897ab652cb420c371fab8857ad4.tar.gz
BASELINE: Update Chromium to 53.0.2785.41
Also adds a few extra files for extensions. Change-Id: Iccdd55d98660903331cf8b7b29188da781830af4 Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
Diffstat (limited to 'chromium/components/metrics/metrics_log.cc')
-rw-r--r--chromium/components/metrics/metrics_log.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/chromium/components/metrics/metrics_log.cc b/chromium/components/metrics/metrics_log.cc
index 75ed54deb71..3d8cc1886a8 100644
--- a/chromium/components/metrics/metrics_log.cc
+++ b/chromium/components/metrics/metrics_log.cc
@@ -251,9 +251,8 @@ bool MetricsLog::HasEnvironment() const {
return uma_proto()->system_profile().has_uma_enabled_date();
}
-void MetricsLog::WriteMetricsEnableDefault(
- MetricsServiceClient::EnableMetricsDefault metrics_default,
- SystemProfileProto* system_profile) {
+void MetricsLog::WriteMetricsEnableDefault(EnableMetricsDefault metrics_default,
+ SystemProfileProto* system_profile) {
if (client_->IsReportingPolicyManaged()) {
// If it's managed, then it must be reporting, otherwise we wouldn't be
// sending metrics.
@@ -263,14 +262,14 @@ void MetricsLog::WriteMetricsEnableDefault(
}
switch (metrics_default) {
- case MetricsServiceClient::DEFAULT_UNKNOWN:
+ case EnableMetricsDefault::DEFAULT_UNKNOWN:
// Don't set the field if it's unknown.
break;
- case MetricsServiceClient::OPT_IN:
+ case EnableMetricsDefault::OPT_IN:
system_profile->set_uma_default_state(
SystemProfileProto_UmaDefaultState_OPT_IN);
break;
- case MetricsServiceClient::OPT_OUT:
+ case EnableMetricsDefault::OPT_OUT:
system_profile->set_uma_default_state(
SystemProfileProto_UmaDefaultState_OPT_OUT);
}
@@ -324,7 +323,8 @@ void MetricsLog::RecordEnvironment(
SystemProfileProto* system_profile = uma_proto()->mutable_system_profile();
- WriteMetricsEnableDefault(client_->GetDefaultOptIn(), system_profile);
+ WriteMetricsEnableDefault(client_->GetMetricsReportingDefaultState(),
+ system_profile);
std::string brand_code;
if (client_->GetBrand(&brand_code))
@@ -351,10 +351,10 @@ void MetricsLog::RecordEnvironment(
hardware->set_dll_base(reinterpret_cast<uint64_t>(CURRENT_MODULE()));
#endif
+ SystemProfileProto::OS* os = system_profile->mutable_os();
#if defined(OVERRIDE_OS_NAME_TO_BLIMP)
os->set_name("Blimp");
#else
- SystemProfileProto::OS* os = system_profile->mutable_os();
std::string os_name = base::SysInfo::OperatingSystemName();
os->set_name(os_name);
#endif