Searched defs:pref_name (Results 1 - 25 of 58) sorted by relevance

123

/external/chromium_org/base/prefs/
H A Dmock_pref_change_callback.cc20 void MockPrefChangeCallback::Expect(const std::string& pref_name, argument
22 EXPECT_CALL(*this, OnPreferenceChanged(pref_name))
23 .With(PrefValueMatches(prefs_, pref_name, value));
H A Dpref_registry.cc31 void PrefRegistry::SetDefaultPrefValue(const char* pref_name, argument
35 DCHECK(defaults_->GetValue(pref_name, &current_value))
36 << "Setting default for unregistered pref: " << pref_name;
38 << "Wrong type for new default: " << pref_name;
40 defaults_->ReplaceDefaultValue(pref_name, make_scoped_ptr(value));
H A Dpref_change_registrar.cc85 const std::string& pref_name) {
84 InvokeUnnamedCallback(const base::Closure& callback, const std::string& pref_name) argument
H A Dpref_notifier_impl_unittest.cc116 const char pref_name[] = "homepage"; local
120 notifier.AddPrefObserver(pref_name, &obs1_);
121 ASSERT_EQ(1u, notifier.CountObserver(pref_name, &obs1_));
123 ASSERT_EQ(0u, notifier.CountObserver(pref_name, &obs2_));
130 notifier.AddPrefObserver(pref_name, &obs1_);
131 ASSERT_EQ(1u, notifier.CountObserver(pref_name, &obs1_));
133 ASSERT_EQ(0u, notifier.CountObserver(pref_name, &obs2_));
139 ASSERT_EQ(1u, notifier.CountObserver(pref_name, &obs1_));
141 ASSERT_EQ(0u, notifier.CountObserver(pref_name, &obs2_));
145 notifier.AddPrefObserver(pref_name,
[all...]
H A Dpref_service_unittest.cc26 const char pref_name[] = "homepage"; local
27 prefs.registry()->RegisterStringPref(pref_name, std::string());
33 registrar.Add(pref_name, obs.GetCallback());
37 obs.Expect(pref_name, &expected_value);
38 prefs.SetString(pref_name, new_pref_value);
44 prefs.SetString(pref_name, new_pref_value);
49 obs.Expect(pref_name, &expected_default_value);
50 prefs.ClearPref(pref_name);
55 prefs.ClearPref(pref_name);
78 const char pref_name[] local
[all...]
H A Dpref_member.cc28 void PrefMemberBase::Init(const char* pref_name, argument
32 Init(pref_name, prefs);
35 void PrefMemberBase::Init(const char* pref_name, argument
37 DCHECK(pref_name);
41 pref_name_ = pref_name;
44 << pref_name << " not registered.";
47 prefs_->AddPrefObserver(pref_name, this);
67 const std::string& pref_name) {
70 base::Bind(observer_, pref_name) : base::Closure());
93 const std::string& pref_name) {
66 OnPreferenceChanged(PrefService* service, const std::string& pref_name) argument
92 InvokeUnnamedCallback(const base::Closure& callback, const std::string& pref_name) argument
[all...]
H A Dpref_member_unittest.cc38 void Init(const char* pref_name, PrefService* prefs) { argument
39 pref_.Init(pref_name, prefs);
88 void OnPreferenceChanged(const std::string& pref_name) { argument
89 EXPECT_EQ(pref_name, kStringPref);
/external/chromium_org/chrome/browser/ui/webui/
H A Dgesture_config_ui.cc54 std::string pref_name; local
56 if (!args->GetString(0, &pref_name)) return;
60 prefs->FindPreference(pref_name.c_str());
62 base::StringValue js_pref_name(pref_name);
63 base::FundamentalValue js_pref_value(prefs->GetDouble(pref_name.c_str()));
74 std::string pref_name; local
76 if (!args->GetString(0, &pref_name)) return;
80 prefs->ClearPref(pref_name.c_str());
85 std::string pref_name; local
88 if (!args->GetString(0, &pref_name) || !arg
[all...]
H A Dinstant_ui.cc92 std::string pref_name; local
93 if (!args->GetString(0, &pref_name)) return;
95 base::StringValue pref_name_value(pref_name);
96 if (pref_name == prefs::kInstantUIZeroSuggestUrlPrefix) {
98 base::StringValue arg(prefs->GetString(pref_name.c_str()));
105 std::string pref_name; local
106 if (!args->GetString(0, &pref_name)) return;
108 if (pref_name == prefs::kInstantUIZeroSuggestUrlPrefix) {
113 prefs->SetString(pref_name.c_str(), value);
/external/chromium_org/chrome/common/importer/
H A Dfirefox_importer_utils_unittest.cc18 std::string pref_name; member in struct:__anon5675::GetPrefsJsValueCase
100 GetPrefsJsValueCases[i].pref_name));
/external/chromium_org/chrome/browser/ui/webui/options/
H A Doptions_browsertest.cc60 std::string pref_name; local
61 ASSERT_TRUE(args->GetString(0, &pref_name));
65 browser()->profile()->GetPrefs()->Set(pref_name.c_str(), *pref_value);
/external/chromium_org/chrome/browser/chromeos/extensions/
H A Daccessibility_features_apitest.cc99 const char* const pref_name = GetPrefForFeature(enabled_features[i]); local
100 EXPECT_TRUE(pref_name) << "Invalid feature " << enabled_features[i];
101 if (!pref_name)
103 prefs->SetBoolean(pref_name, true);
107 const char* const pref_name = GetPrefForFeature(disabled_features[i]); local
108 EXPECT_TRUE(pref_name) << "Invalid feature " << disabled_features[i];
109 if (!pref_name)
111 prefs->SetBoolean(pref_name, false);
127 const char* const pref_name = GetPrefForFeature(enabled_features[i]); local
128 ASSERT_TRUE(pref_name) << "Invali
133 const char* const pref_name = GetPrefForFeature(disabled_features[i]); local
[all...]
/external/chromium_org/chrome/browser/chromeos/policy/
H A Drecommendation_restorer.cc97 const std::string& pref_name) {
99 pref_change_registrar_.prefs()->FindPreference(pref_name.c_str());
96 Restore(bool allow_delay, const std::string& pref_name) argument
H A Dlogin_screen_default_policy_browsertest.cc42 // of |pref_name| has changed. If the notification is received before Wait()
46 PrefChangeWatcher(const char* pref_name, PrefService* prefs);
61 PrefChangeWatcher::PrefChangeWatcher(const char* pref_name, argument
65 registrar_.Add(pref_name, base::Bind(&PrefChangeWatcher::OnPrefChange,
91 void RefreshDevicePolicyAndWaitForPrefChange(const char* pref_name);
110 void VerifyPrefFollowsRecommendation(const char* pref_name,
126 void VerifyPrefFollowsDefault(const char* pref_name);
154 RefreshDevicePolicyAndWaitForPrefChange(const char* pref_name) { argument
155 PrefChangeWatcher watcher(pref_name, login_profile_->GetPrefs());
200 VerifyPrefFollowsRecommendation(const char* pref_name, argument
224 VerifyPrefFollowsDefault( const char* pref_name) argument
[all...]
H A Drecommendation_restorer_unittest.cc58 void VerifyPrefFollowsUser(const char* pref_name,
61 void VerifyPrefFollowsRecommendation(const char* pref_name,
168 const char* pref_name,
171 prefs_->FindPreference(pref_name);
195 const char* pref_name,
198 prefs_->FindPreference(pref_name);
167 VerifyPrefFollowsUser( const char* pref_name, const base::Value& expected_value) const argument
194 VerifyPrefFollowsRecommendation( const char* pref_name, const base::Value& expected_value) const argument
/external/chromium_org/chrome/browser/extensions/api/hotword_private/
H A Dhotword_private_api.cc63 const std::string& pref_name) {
64 DCHECK(pref_name == std::string(prefs::kHotwordSearchEnabled) ||
65 pref_name == std::string(prefs::kHotwordAlwaysOnSearchEnabled));
62 OnEnabledChanged( const std::string& pref_name) argument
/external/chromium_org/chrome/browser/extensions/
H A Dexternal_registry_loader_win.cc48 const std::string& pref_name) {
49 return base::StringPrintf("%s.%s", extension_id.c_str(), pref_name.c_str());
47 MakePrefName(const std::string& extension_id, const std::string& pref_name) argument
/external/chromium_org/chrome/browser/
H A Dfont_family_cache.cc60 std::string pref_name = base::StringPrintf("%s.%s", map_name, script); local
61 std::string font = prefs_->GetString(pref_name.c_str());
70 pref_name.c_str(),
89 void FontFamilyCache::OnPrefsChanged(const std::string& pref_name) { argument
99 if (pref_name.compare(0, map_name_length, map_name) != 0)
108 if (pref_name.size() !=
113 if (pref_name.compare(
118 if (pref_name[map_name_length] != delimiter)
123 profile_pref_registrar_.Remove(pref_name.c_str());
/external/chromium_org/chrome/browser/supervised_user/
H A Dsupervised_user_pref_store.cc22 const char* pref_name; member in struct:__anon4734::SupervisedUserSettingsPrefMappingEntry
109 prefs_->SetValue(entry.pref_name, value->DeepCopy());
/external/chromium_org/chrome/browser/ui/webui/chromeos/
H A Dsalsa_ui.cc109 std::string pref_name; local
111 if (!args->GetString(0, &pref_name) || !args->Get(1, &value))
114 int index = WhitelistIndex(pref_name.c_str());
136 std::string pref_name; local
137 if (!args->GetString(0, &pref_name))
140 int index = WhitelistIndex(pref_name.c_str());
/external/chromium_org/chrome/installer/util/
H A Dchrome_frame_operations.cc24 const char* pref_name; member in struct:installer::PrefToOption
34 if (prefs.GetBool(scan->pref_name, &pref_value) && pref_value)
/external/chromium_org/components/metrics/
H A Ddaily_event.cc42 const char* pref_name,
45 pref_name_(pref_name),
54 const char* pref_name) {
55 registry->RegisterInt64Pref(pref_name, base::Time().ToInternalValue());
41 DailyEvent(PrefService* pref_service, const char* pref_name, const std::string& histogram_name) argument
53 RegisterPref(PrefRegistrySimple* registry, const char* pref_name) argument
/external/chromium_org/chrome/browser/chromeos/login/
H A Dstartup_utils.cc25 void SaveBoolPreferenceForced(const char* pref_name, bool value) { argument
27 prefs->SetBoolean(pref_name, value);
32 void SaveIntegerPreferenceForced(const char* pref_name, int value) { argument
34 prefs->SetInteger(pref_name, value);
39 void SaveStringPreferenceForced(const char* pref_name, argument
42 prefs->SetString(pref_name, value);
/external/chromium_org/chrome/browser/chromeos/login/users/avatar/
H A Duser_image_sync_observer.cc111 void UserImageSyncObserver::OnPreferenceChanged(const std::string& pref_name) { argument
/external/chromium_org/chrome/browser/chromeos/settings/
H A Dcros_settings_unittest.cc68 void SetPref(const std::string& pref_name, const base::Value* value) { argument
70 settings_.Set(pref_name, *value);
73 void AddExpectation(const std::string& pref_name, base::Value* value) { argument
74 base::Value*& entry = expected_props_[pref_name];

Completed in 399 milliseconds

123