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

Side by Side Diff: components/flags_ui/pref_service_flags_storage.cc

Issue 1662843002: Revert of Delete base/prefs and update callers to use components. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
« no previous file with comments | « components/flags_ui/flags_state_unittest.cc ('k') | components/gcm_driver/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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"
7 #include "base/values.h" 10 #include "base/values.h"
8 #include "build/build_config.h" 11 #include "build/build_config.h"
9 #include "components/flags_ui/flags_ui_pref_names.h" 12 #include "components/flags_ui/flags_ui_pref_names.h"
10 #include "components/pref_registry/pref_registry_syncable.h" 13 #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
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
OLDNEW
« no previous file with comments | « components/flags_ui/flags_state_unittest.cc ('k') | components/gcm_driver/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698