| Index: components/ukm/ukm_service.cc
|
| diff --git a/components/ukm/ukm_service.cc b/components/ukm/ukm_service.cc
|
| index 823bff5fb368bbe1278aecd598f42adfab331284..1eae71872cd0eb14e9670383a0b0f5abf93e18ab 100644
|
| --- a/components/ukm/ukm_service.cc
|
| +++ b/components/ukm/ukm_service.cc
|
| @@ -15,6 +15,7 @@
|
| #include "base/rand_util.h"
|
| #include "base/strings/string_number_conversions.h"
|
| #include "base/time/time.h"
|
| +#include "components/metrics/metrics_log.h"
|
| #include "components/metrics/metrics_log_uploader.h"
|
| #include "components/metrics/metrics_service_client.h"
|
| #include "components/metrics/proto/ukm/report.pb.h"
|
| @@ -94,6 +95,7 @@ UkmService::UkmService(PrefService* pref_service,
|
| self_ptr_factory_(this) {
|
| DCHECK(pref_service_);
|
| DCHECK(client_);
|
| + DVLOG(1) << "UkmService::Constructor";
|
|
|
| persisted_logs_.DeserializeLogs();
|
|
|
| @@ -189,7 +191,9 @@ void UkmService::BuildAndStoreLog() {
|
| DVLOG(1) << "UkmService::BuildAndStoreLog";
|
| Report report;
|
| report.set_client_id(client_id_);
|
| - // TODO(holte): Populate system_profile.
|
| + metrics::MetricsLog::RecordCoreSystemProfile(client_,
|
| + report.mutable_system_profile());
|
| + // TODO(rkaplow): Populate network information.
|
| // TODO(oystein): Populate sources.
|
| std::string serialized_log;
|
| report.SerializeToString(&serialized_log);
|
|
|