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

Side by Side Diff: components/feature_engagement_tracker/internal/editable_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/editable_configuration. h" 5 #include "components/feature_engagement_tracker/internal/editable_configuration. h"
6 6
7 #include <map> 7 #include <map>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "components/feature_engagement_tracker/internal/configuration.h" 10 #include "components/feature_engagement_tracker/internal/configuration.h"
(...skipping 10 matching lines...) Expand all
21 configs_[feature] = feature_config; 21 configs_[feature] = feature_config;
22 } 22 }
23 23
24 const FeatureConfig& EditableConfiguration::GetFeatureConfig( 24 const FeatureConfig& EditableConfiguration::GetFeatureConfig(
25 const base::Feature& feature) const { 25 const base::Feature& feature) const {
26 auto it = configs_.find(&feature); 26 auto it = configs_.find(&feature);
27 DCHECK(it != configs_.end()); 27 DCHECK(it != configs_.end());
28 return it->second; 28 return it->second;
29 } 29 }
30 30
31 const Configuration::ConfigMap& EditableConfiguration::GetRegisteredFeatures()
32 const {
33 return configs_;
34 }
35
31 } // namespace feature_engagement_tracker 36 } // namespace feature_engagement_tracker
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698