| 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/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 |
| OLD | NEW |