Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/password_manager/core/common/experiments.h" | 5 #include "components/password_manager/core/common/experiments.h" |
| 6 | 6 |
| 7 #include "components/password_manager/core/common/password_manager_features.h" | 7 #include "components/password_manager/core/common/password_manager_features.h" |
| 8 | 8 |
| 9 namespace password_manager { | 9 namespace password_manager { |
| 10 | 10 |
| 11 bool ForceSavingExperimentEnabled() { | 11 bool ForceSavingExperimentEnabled() { |
| 12 return base::FeatureList::IsEnabled( | 12 return base::FeatureList::IsEnabled( |
| 13 password_manager::features::kEnablePasswordForceSaving); | 13 password_manager::features::kEnablePasswordForceSaving); |
| 14 } | 14 } |
| 15 | 15 |
| 16 bool ManualPasswordGenerationEnabled() { | 16 bool ManualPasswordGenerationEnabled() { |
| 17 return base::FeatureList::IsEnabled( | 17 return base::FeatureList::IsEnabled( |
| 18 password_manager::features::kEnableManualPasswordGeneration); | 18 password_manager::features::kEnableManualPasswordGeneration); |
| 19 } | 19 } |
| 20 | 20 |
| 21 bool ImportExportExperimentEnabled() { | |
|
vabr (Chromium)
2016/03/10 10:53:33
The call to base::FeatureList is so simple, that I
xunlu
2016/03/16 07:23:59
Done.
| |
| 22 return base::FeatureList::IsEnabled( | |
| 23 password_manager::features::kEnablePasswordImportExport); | |
| 24 } | |
| 25 | |
| 21 } // namespace password_manager | 26 } // namespace password_manager |
| OLD | NEW |