Home
last modified time | relevance | path

Searched refs:pref_key (Results 1 – 16 of 16) sorted by relevance

/external/chromium_org/chrome/browser/extensions/api/preference/
Dchrome_direct_setting.cc35 std::string pref_key; in RunSync() local
36 EXTENSION_FUNCTION_VALIDATE(args_->GetString(0, &pref_key)); in RunSync()
38 ->IsPreferenceOnWhitelist(pref_key)); in RunSync()
41 GetPrefService()->FindPreference(pref_key.c_str()); in RunSync()
59 std::string pref_key; in RunSync() local
60 EXTENSION_FUNCTION_VALIDATE(args_->GetString(0, &pref_key)); in RunSync()
62 ->IsPreferenceOnWhitelist(pref_key)); in RunSync()
73 pref_service->FindPreference(pref_key.c_str()); in RunSync()
78 pref_service->Set(pref_key.c_str(), *value); in RunSync()
90 std::string pref_key; in RunSync() local
[all …]
Dchrome_direct_setting_api.cc32 bool IsPreferenceOnWhitelist(const std::string& pref_key){ in IsPreferenceOnWhitelist() argument
33 return whitelist_.find(pref_key) != whitelist_.end(); in IsPreferenceOnWhitelist()
56 const char* pref_key = (*iter).c_str(); in RegisterPropertyListeners() local
59 pref_key); in RegisterPropertyListeners()
60 registrar->Add(pref_key, callback); in RegisterPropertyListeners()
106 const std::string& pref_key) { in IsPreferenceOnWhitelist() argument
107 return preference_whitelist.Get().IsPreferenceOnWhitelist(pref_key); in IsPreferenceOnWhitelist()
121 PrefService* pref_service, const std::string& pref_key) { in OnPrefChanged() argument
123 pref_key.c_str()); in OnPrefChanged()
127 profile_->GetPrefs()->FindPreference(pref_key.c_str()); in OnPrefChanged()
Dpreference_api.cc368 const std::string& pref_key, in SetExtensionControlledPref() argument
373 extension_prefs()->pref_service()->FindPreference(pref_key.c_str()); in SetExtensionControlledPref()
374 DCHECK(pref) << "Extension controlled preference key " << pref_key in SetExtensionControlledPref()
377 << "Extension controlled preference " << pref_key << " has wrong type."; in SetExtensionControlledPref()
391 preference->SetWithoutPathExpansion(pref_key, value->DeepCopy()); in SetExtensionControlledPref()
394 extension_id, pref_key, scope, value); in SetExtensionControlledPref()
399 const std::string& pref_key, in RemoveExtensionControlledPref() argument
401 DCHECK(extension_prefs()->pref_service()->FindPreference(pref_key.c_str())) in RemoveExtensionControlledPref()
402 << "Extension controlled preference key " << pref_key in RemoveExtensionControlledPref()
412 preference->RemoveWithoutPathExpansion(pref_key, NULL); in RemoveExtensionControlledPref()
[all …]
Dpreference_api.h36 const std::string& pref_key);
62 const std::string& pref_key,
68 const std::string& pref_key,
74 const std::string& pref_key,
83 const std::string& pref_key,
Dchrome_direct_setting_api.h39 bool IsPreferenceOnWhitelist(const std::string& pref_key);
50 void OnPrefChanged(PrefService* pref_service, const std::string& pref_key);
/external/chromium_org/extensions/browser/
Dextension_scoped_prefs.h25 const std::string& pref_key,
30 const std::string& pref_key,
35 const std::string& pref_key,
40 const std::string& pref_key,
46 const std::string& pref_key,
Dextension_prefs.h229 const std::string& pref_key,
233 const std::string& pref_key,
237 const std::string& pref_key,
241 const std::string& pref_key,
246 const std::string& pref_key,
488 bool HasIncognitoPrefValue(const std::string& pref_key);
597 const std::string& pref_key,
604 const std::string& pref_key,
615 const std::string& pref_key);
620 const std::string& pref_key,
Dextension_pref_value_map.h104 const std::string& pref_key,
120 const std::string& pref_key,
127 std::string GetExtensionControllingPref(const std::string& pref_key) const;
Dextension_prefs.cc481 const std::string& pref_key, in ReadPrefAsBoolean() argument
484 if (!ext || !ext->GetBoolean(pref_key, out_value)) in ReadPrefAsBoolean()
491 const std::string& pref_key, in ReadPrefAsInteger() argument
494 if (!ext || !ext->GetInteger(pref_key, out_value)) in ReadPrefAsInteger()
501 const std::string& pref_key, in ReadPrefAsString() argument
504 if (!ext || !ext->GetString(pref_key, out_value)) in ReadPrefAsString()
511 const std::string& pref_key, in ReadPrefAsList() argument
515 if (!ext || !ext->GetList(pref_key, &out)) in ReadPrefAsList()
525 const std::string& pref_key, in ReadPrefAsDictionary() argument
529 if (!ext || !ext->GetDictionary(pref_key, &out)) in ReadPrefAsDictionary()
[all …]
Dextension_pref_value_map.cc71 const std::string& pref_key, in CanExtensionControlPref() argument
83 GetEffectivePrefValueController(pref_key, incognito, NULL); in CanExtensionControlPref()
111 const std::string& pref_key, in DoesExtensionControlPref() argument
115 GetEffectivePrefValueController(pref_key, incognito, from_incognito); in DoesExtensionControlPref()
375 const std::string& pref_key) const { in GetExtensionControllingPref()
377 GetEffectivePrefValueController(pref_key, false, NULL); in GetExtensionControllingPref()
/external/chromium_org/chrome/common/importer/
Dfirefox_importer_utils.cc188 const std::string& pref_key) { in ReadBrowserConfigProp() argument
194 size_t prop_index = content.find(pref_key + "="); in ReadBrowserConfigProp()
198 size_t start = prop_index + pref_key.length(); in ReadBrowserConfigProp()
205 LOG(WARNING) << "Firefox property " << pref_key << " could not be parsed."; in ReadBrowserConfigProp()
213 const std::string& pref_key) { in ReadPrefsJsValue() argument
218 return GetPrefsJsValue(content, pref_key); in ReadPrefsJsValue()
256 const std::string& pref_key) { in GetPrefsJsValue() argument
258 std::string search_for = std::string("user_pref(\"") + pref_key + in GetPrefsJsValue()
274 LOG(WARNING) << "Firefox property " << pref_key << " could not be parsed."; in GetPrefsJsValue()
Dfirefox_importer_utils.h86 const std::string& pref_key);
/external/chromium_org/chrome/browser/extensions/api/settings_overrides/
Dsettings_overrides_api.h39 const std::string& pref_key,
42 const std::string& pref_key);
Dsettings_overrides_api.cc141 const std::string& pref_key, in SetPref() argument
147 pref_key, in SetPref()
153 const std::string& pref_key) { in UnsetPref() argument
159 pref_key, in UnsetPref()
/external/chromium_org/chrome/browser/content_settings/
Dcontent_settings_pref_provider.cc59 std::string* pref_key) { in GetResourceTypeName() argument
61 *pref_key = kPerPluginPrefName; in GetResourceTypeName()
/external/chromium_org/chrome/browser/ui/ash/launcher/
Dchrome_launcher_controller.cc125 const char* pref_key, in UpdatePerDisplayPref() argument
138 prefs->SetStringWithoutPathExpansion(pref_key, value); in UpdatePerDisplayPref()
166 std::string pref_key = GetPrefKeyForRootWindow(root_window); in GetPrefForRootWindow() local
168 if (!pref_key.empty()) { in GetPrefForRootWindow()
173 if (shelf_prefs->GetDictionary(pref_key, &display_pref) && in GetPrefForRootWindow()