Searched defs:pref_key (Results 1 - 9 of 9) sorted by relevance

/external/chromium_org/chrome/browser/extensions/api/preference/
H A Dchrome_direct_setting.cc35 std::string pref_key; local
36 EXTENSION_FUNCTION_VALIDATE(args_->GetString(0, &pref_key));
38 ->IsPreferenceOnWhitelist(pref_key));
41 GetPrefService()->FindPreference(pref_key.c_str());
59 std::string pref_key; local
60 EXTENSION_FUNCTION_VALIDATE(args_->GetString(0, &pref_key));
62 ->IsPreferenceOnWhitelist(pref_key));
73 pref_service->FindPreference(pref_key.c_str());
78 pref_service->Set(pref_key.c_str(), *value);
90 std::string pref_key; local
[all...]
H A Dchrome_direct_setting_api.cc32 bool IsPreferenceOnWhitelist(const std::string& pref_key){ argument
33 return whitelist_.find(pref_key) != whitelist_.end();
56 const char* pref_key = (*iter).c_str(); local
59 pref_key);
60 registrar->Add(pref_key, callback);
106 const std::string& pref_key) {
107 return preference_whitelist.Get().IsPreferenceOnWhitelist(pref_key);
121 PrefService* pref_service, const std::string& pref_key) {
123 pref_key.c_str());
127 profile_->GetPrefs()->FindPreference(pref_key
105 IsPreferenceOnWhitelist( const std::string& pref_key) argument
120 OnPrefChanged( PrefService* pref_service, const std::string& pref_key) argument
[all...]
H A Dpreference_api.cc368 const std::string& pref_key,
373 extension_prefs()->pref_service()->FindPreference(pref_key.c_str());
374 DCHECK(pref) << "Extension controlled preference key " << pref_key
377 << "Extension controlled preference " << pref_key << " has wrong type.";
391 preference->SetWithoutPathExpansion(pref_key, value->DeepCopy());
394 extension_id, pref_key, scope, value);
399 const std::string& pref_key,
401 DCHECK(extension_prefs()->pref_service()->FindPreference(pref_key.c_str()))
402 << "Extension controlled preference key " << pref_key
412 preference->RemoveWithoutPathExpansion(pref_key, NUL
366 SetExtensionControlledPref( const std::string& extension_id, const std::string& pref_key, ExtensionPrefsScope scope, base::Value* value) argument
397 RemoveExtensionControlledPref( const std::string& extension_id, const std::string& pref_key, ExtensionPrefsScope scope) argument
418 CanExtensionControlPref( const std::string& extension_id, const std::string& pref_key, bool incognito) argument
430 DoesExtensionControlPref( const std::string& extension_id, const std::string& pref_key, bool* from_incognito) argument
560 std::string pref_key; local
622 std::string pref_key; local
708 std::string pref_key; local
[all...]
/external/chromium_org/chrome/browser/extensions/api/settings_overrides/
H A Dsettings_overrides_api.cc141 const std::string& pref_key,
147 pref_key,
153 const std::string& pref_key) {
159 pref_key,
140 SetPref(const std::string& extension_id, const std::string& pref_key, base::Value* value) argument
152 UnsetPref(const std::string& extension_id, const std::string& pref_key) argument
/external/chromium_org/chrome/common/importer/
H A Dfirefox_importer_utils.cc188 const std::string& pref_key) {
194 size_t prop_index = content.find(pref_key + "=");
198 size_t start = prop_index + pref_key.length();
205 LOG(WARNING) << "Firefox property " << pref_key << " could not be parsed.";
213 const std::string& pref_key) {
218 return GetPrefsJsValue(content, pref_key);
256 const std::string& pref_key) {
258 std::string search_for = std::string("user_pref(\"") + pref_key +
274 LOG(WARNING) << "Firefox property " << pref_key << " could not be parsed.";
187 ReadBrowserConfigProp(const base::FilePath& app_path, const std::string& pref_key) argument
212 ReadPrefsJsValue(const base::FilePath& profile_path, const std::string& pref_key) argument
255 GetPrefsJsValue(const std::string& content, const std::string& pref_key) argument
/external/chromium_org/extensions/browser/
H A Dextension_pref_value_map.cc71 const std::string& pref_key,
83 GetEffectivePrefValueController(pref_key, incognito, NULL);
111 const std::string& pref_key,
115 GetEffectivePrefValueController(pref_key, incognito, from_incognito);
375 const std::string& pref_key) const {
377 GetEffectivePrefValueController(pref_key, false, NULL);
69 CanExtensionControlPref( const std::string& extension_id, const std::string& pref_key, bool incognito) const argument
109 DoesExtensionControlPref( const std::string& extension_id, const std::string& pref_key, bool* from_incognito) const argument
H A Dextension_prefs.cc481 const std::string& pref_key,
484 if (!ext || !ext->GetBoolean(pref_key, out_value))
491 const std::string& pref_key,
494 if (!ext || !ext->GetInteger(pref_key, out_value))
501 const std::string& pref_key,
504 if (!ext || !ext->GetString(pref_key, out_value))
511 const std::string& pref_key,
515 if (!ext || !ext->GetList(pref_key, &out))
525 const std::string& pref_key,
529 if (!ext || !ext->GetDictionary(pref_key,
480 ReadPrefAsBoolean(const std::string& extension_id, const std::string& pref_key, bool* out_value) const argument
490 ReadPrefAsInteger(const std::string& extension_id, const std::string& pref_key, int* out_value) const argument
500 ReadPrefAsString(const std::string& extension_id, const std::string& pref_key, std::string* out_value) const argument
510 ReadPrefAsList(const std::string& extension_id, const std::string& pref_key, const base::ListValue** out_value) const argument
523 ReadPrefAsDictionary( const std::string& extension_id, const std::string& pref_key, const base::DictionaryValue** out_value) const argument
542 ReadPrefAsURLPatternSet(const std::string& extension_id, const std::string& pref_key, URLPatternSet* result, int valid_schemes) argument
554 SetExtensionPrefURLPatternSet( const std::string& extension_id, const std::string& pref_key, const URLPatternSet& new_value) argument
568 ReadPrefAsPermissionSet( const std::string& extension_id, const std::string& pref_key) argument
638 SetExtensionPrefPermissionSet( const std::string& extension_id, const std::string& pref_key, const PermissionSet* new_value) argument
1808 HasIncognitoPrefValue(const std::string& pref_key) argument
[all...]
/external/chromium_org/chrome/browser/content_settings/
H A Dcontent_settings_pref_provider.cc55 // returns true and sets |pref_key| to the key in the content settings
59 std::string* pref_key) {
61 *pref_key = kPerPluginPrefName;
58 GetResourceTypeName(ContentSettingsType content_type, std::string* pref_key) argument
/external/chromium_org/chrome/browser/ui/ash/launcher/
H A Dchrome_launcher_controller.cc125 const char* pref_key,
138 prefs->SetStringWithoutPathExpansion(pref_key, value);
166 std::string pref_key = GetPrefKeyForRootWindow(root_window);
168 if (!pref_key.empty()) {
173 if (shelf_prefs->GetDictionary(pref_key, &display_pref) &&
123 UpdatePerDisplayPref(PrefService* pref_service, aura::Window* root_window, const char* pref_key, const std::string& value) argument

Completed in 507 milliseconds