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

Side by Side Diff: components/feature_engagement_tracker/internal/single_invalid_configuration.cc

Issue 2911123003: Metrics for feature engagement tracker. (Closed)
Patch Set: Created 3 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/feature_engagement_tracker/internal/single_invalid_configur ation.h" 5 #include "components/feature_engagement_tracker/internal/single_invalid_configur ation.h"
6 6
7 #include "components/feature_engagement_tracker/internal/configuration.h" 7 #include "components/feature_engagement_tracker/internal/configuration.h"
8 8
9 namespace feature_engagement_tracker { 9 namespace feature_engagement_tracker {
10 10
11 SingleInvalidConfiguration::SingleInvalidConfiguration() { 11 SingleInvalidConfiguration::SingleInvalidConfiguration() {
12 invalid_feature_config_.valid = false; 12 invalid_feature_config_.valid = false;
13 invalid_feature_config_.used.name = "nothing_to_see_here"; 13 invalid_feature_config_.used.name = "nothing_to_see_here";
14 }; 14 };
15 15
16 SingleInvalidConfiguration::~SingleInvalidConfiguration() = default; 16 SingleInvalidConfiguration::~SingleInvalidConfiguration() = default;
17 17
18 const FeatureConfig& SingleInvalidConfiguration::GetFeatureConfig( 18 const FeatureConfig& SingleInvalidConfiguration::GetFeatureConfig(
19 const base::Feature& feature) const { 19 const base::Feature& feature) const {
20 return invalid_feature_config_; 20 return invalid_feature_config_;
21 } 21 }
22 22
23 const Configuration::ConfigMap&
24 SingleInvalidConfiguration::GetRegisteredFeatures() const {
25 return configs_;
26 }
27
23 } // namespace feature_engagement_tracker 28 } // namespace feature_engagement_tracker
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698