| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |