| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/flags_ui/pref_service_flags_storage.h" | 5 #include "components/flags_ui/pref_service_flags_storage.h" |
| 6 | 6 |
| 7 #include "base/prefs/pref_registry_simple.h" | |
| 8 #include "base/prefs/pref_service.h" | |
| 9 #include "base/prefs/scoped_user_pref_update.h" | |
| 10 #include "base/values.h" | 7 #include "base/values.h" |
| 11 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 12 #include "components/flags_ui/flags_ui_pref_names.h" | 9 #include "components/flags_ui/flags_ui_pref_names.h" |
| 13 #include "components/pref_registry/pref_registry_syncable.h" | 10 #include "components/pref_registry/pref_registry_syncable.h" |
| 11 #include "components/prefs/pref_registry_simple.h" |
| 12 #include "components/prefs/pref_service.h" |
| 13 #include "components/prefs/scoped_user_pref_update.h" |
| 14 | 14 |
| 15 namespace flags_ui { | 15 namespace flags_ui { |
| 16 | 16 |
| 17 PrefServiceFlagsStorage::PrefServiceFlagsStorage(PrefService* prefs) | 17 PrefServiceFlagsStorage::PrefServiceFlagsStorage(PrefService* prefs) |
| 18 : prefs_(prefs) {} | 18 : prefs_(prefs) {} |
| 19 | 19 |
| 20 PrefServiceFlagsStorage::~PrefServiceFlagsStorage() {} | 20 PrefServiceFlagsStorage::~PrefServiceFlagsStorage() {} |
| 21 | 21 |
| 22 std::set<std::string> PrefServiceFlagsStorage::GetFlags() { | 22 std::set<std::string> PrefServiceFlagsStorage::GetFlags() { |
| 23 const base::ListValue* enabled_experiments = | 23 const base::ListValue* enabled_experiments = |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 | 55 |
| 56 #if defined(OS_CHROMEOS) | 56 #if defined(OS_CHROMEOS) |
| 57 // static | 57 // static |
| 58 void PrefServiceFlagsStorage::RegisterProfilePrefs( | 58 void PrefServiceFlagsStorage::RegisterProfilePrefs( |
| 59 user_prefs::PrefRegistrySyncable* registry) { | 59 user_prefs::PrefRegistrySyncable* registry) { |
| 60 registry->RegisterListPref(prefs::kEnabledLabsExperiments); | 60 registry->RegisterListPref(prefs::kEnabledLabsExperiments); |
| 61 } | 61 } |
| 62 #endif // defined(OS_CHROMEOS) | 62 #endif // defined(OS_CHROMEOS) |
| 63 | 63 |
| 64 } // namespace flags_ui | 64 } // namespace flags_ui |
| OLD | NEW |