blob: 0c1148ca4912d5b51d56109298a00e02813f7fa1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/metrics/entropy_state_provider.h"
#include "third_party/metrics_proto/system_profile.pb.h"
namespace metrics {
EntropyStateProvider::EntropyStateProvider(PrefService* local_state)
: entropy_state_(local_state) {}
EntropyStateProvider::~EntropyStateProvider() = default;
void EntropyStateProvider::ProvideSystemProfileMetrics(
SystemProfileProto* system_profile) {
system_profile->set_low_entropy_source(entropy_state_.GetLowEntropySource());
system_profile->set_old_low_entropy_source(
entropy_state_.GetOldLowEntropySource());
}
} // namespace metrics
|