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

Side by Side Diff: chrome/browser/extensions/api/preference/chrome_direct_setting.cc

Issue 1658793002: Update chrome for new prefs location. (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
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 "chrome/browser/extensions/api/preference/chrome_direct_setting.h" 5 #include "chrome/browser/extensions/api/preference/chrome_direct_setting.h"
6 6
7 #include "base/containers/hash_tables.h" 7 #include "base/containers/hash_tables.h"
8 #include "base/lazy_instance.h" 8 #include "base/lazy_instance.h"
9 #include "base/prefs/pref_service.h"
10 #include "base/values.h" 9 #include "base/values.h"
11 #include "chrome/browser/extensions/api/preference/chrome_direct_setting_api.h" 10 #include "chrome/browser/extensions/api/preference/chrome_direct_setting_api.h"
12 #include "chrome/browser/extensions/api/preference/preference_api_constants.h" 11 #include "chrome/browser/extensions/api/preference/preference_api_constants.h"
13 #include "chrome/browser/profiles/profile.h" 12 #include "chrome/browser/profiles/profile.h"
13 #include "components/prefs/pref_service.h"
14 14
15 namespace extensions { 15 namespace extensions {
16 namespace chromedirectsetting { 16 namespace chromedirectsetting {
17 17
18 DirectSettingFunctionBase::DirectSettingFunctionBase() {} 18 DirectSettingFunctionBase::DirectSettingFunctionBase() {}
19 19
20 DirectSettingFunctionBase::~DirectSettingFunctionBase() {} 20 DirectSettingFunctionBase::~DirectSettingFunctionBase() {}
21 21
22 PrefService* DirectSettingFunctionBase::GetPrefService() { 22 PrefService* DirectSettingFunctionBase::GetPrefService() {
23 return GetProfile()->GetPrefs(); 23 return GetProfile()->GetPrefs();
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 GetPrefService()->ClearPref(pref_key.c_str()); 84 GetPrefService()->ClearPref(pref_key.c_str());
85 85
86 return true; 86 return true;
87 } 87 }
88 88
89 ClearDirectSettingFunction::~ClearDirectSettingFunction() {} 89 ClearDirectSettingFunction::~ClearDirectSettingFunction() {}
90 90
91 } // namespace chromedirectsetting 91 } // namespace chromedirectsetting
92 } // namespace extensions 92 } // namespace extensions
93 93
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698