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

Unified Diff: chrome/browser/extensions/api/font_settings/font_settings_api.cc

Issue 10952021: Moving preference API into api/preferences (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/api/font_settings/font_settings_api.cc
diff --git a/chrome/browser/extensions/api/font_settings/font_settings_api.cc b/chrome/browser/extensions/api/font_settings/font_settings_api.cc
index 538760897ec27eea4f920598c1a711750ace011f..729f7b682f3cb903f80f3a52aee758b6ef8e037c 100644
--- a/chrome/browser/extensions/api/font_settings/font_settings_api.cc
+++ b/chrome/browser/extensions/api/font_settings/font_settings_api.cc
@@ -12,7 +12,7 @@
#include "base/stringprintf.h"
#include "base/string_util.h"
#include "base/values.h"
-#include "chrome/browser/extensions/extension_preference_helpers.h"
+#include "chrome/browser/extensions/api/preference/preference_helpers.h"
#include "chrome/browser/extensions/extension_service.h"
#include "chrome/browser/prefs/pref_service.h"
#include "chrome/browser/profiles/profile.h"
@@ -207,7 +207,7 @@ void FontSettingsEventRouter::OnFontNamePrefChanged(
dict->SetString(kGenericFamilyKey, generic_family);
dict->SetString(kScriptKey, script);
- extension_preference_helpers::DispatchEventToExtensions(
+ extensions::preference_helpers::DispatchEventToExtensions(
profile_,
kOnFontChanged,
&args,
@@ -231,7 +231,7 @@ void FontSettingsEventRouter::OnFontPrefChanged(
args.Append(dict);
dict->Set(key, pref->GetValue()->DeepCopy());
- extension_preference_helpers::DispatchEventToExtensions(
+ extensions::preference_helpers::DispatchEventToExtensions(
profile_,
event_name,
&args,
@@ -284,10 +284,10 @@ bool GetFontFunction::RunImpl() {
// getting level of control.
const bool kIncognito = false;
std::string level_of_control =
- extension_preference_helpers::GetLevelOfControl(profile_,
- extension_id(),
- pref_path,
- kIncognito);
+ extensions::preference_helpers::GetLevelOfControl(profile_,
+ extension_id(),
+ pref_path,
+ kIncognito);
DictionaryValue* result = new DictionaryValue();
result->SetString(kFontIdKey, font_name);
@@ -386,10 +386,10 @@ bool GetFontPrefExtensionFunction::RunImpl() {
const bool kIncognito = false;
std::string level_of_control =
- extension_preference_helpers::GetLevelOfControl(profile_,
- extension_id(),
- GetPrefName(),
- kIncognito);
+ extensions::preference_helpers::GetLevelOfControl(profile_,
+ extension_id(),
+ GetPrefName(),
+ kIncognito);
DictionaryValue* result = new DictionaryValue();
result->Set(GetKey(), pref->GetValue()->DeepCopy());

Powered by Google App Engine
This is Rietveld 408576698