HomeSort by relevance Sort by last modified time
    Searched refs:pref_name (Results 1 - 25 of 96) sorted by null

1 2 3 4

  /external/chromium_org/chrome/browser/sync/test/integration/
preferences_helper.h 23 // Inverts the value of the boolean preference with name |pref_name| in the
26 void ChangeBooleanPref(int index, const char* pref_name);
28 // Changes the value of the integer preference with name |pref_name| in the
31 void ChangeIntegerPref(int index, const char* pref_name, int new_value);
33 // Changes the value of the int64 preference with name |pref_name| in the
36 void ChangeInt64Pref(int index, const char* pref_name, int64 new_value);
38 // Changes the value of the double preference with name |pref_name| in the
41 void ChangeDoublePref(int index, const char* pref_name, double new_value);
43 // Changes the value of the string preference with name |pref_name| in the
47 const char* pref_name,
    [all...]
preferences_helper.cc 29 void ChangeBooleanPref(int index, const char* pref_name) {
30 bool new_value = !GetPrefs(index)->GetBoolean(pref_name);
31 GetPrefs(index)->SetBoolean(pref_name, new_value);
33 GetVerifierPrefs()->SetBoolean(pref_name, new_value);
36 void ChangeIntegerPref(int index, const char* pref_name, int new_value) {
37 GetPrefs(index)->SetInteger(pref_name, new_value);
39 GetVerifierPrefs()->SetInteger(pref_name, new_value);
42 void ChangeInt64Pref(int index, const char* pref_name, int64 new_value) {
43 GetPrefs(index)->SetInt64(pref_name, new_value);
45 GetVerifierPrefs()->SetInt64(pref_name, new_value)
74 ListPrefUpdate update(GetPrefs(index), pref_name); local
84 ListPrefUpdate update_verifier(GetVerifierPrefs(), pref_name); local
    [all...]
  /external/chromium_org/base/prefs/
mock_pref_change_callback.cc 20 void MockPrefChangeCallback::Expect(const std::string& pref_name,
22 EXPECT_CALL(*this, OnPreferenceChanged(pref_name))
23 .With(PrefValueMatches(prefs_, pref_name, value));
pref_notifier.h 19 // |pref_name|.
20 virtual void OnPreferenceChanged(const std::string& pref_name) = 0;
pref_observer.h 18 const std::string& pref_name) = 0;
pref_notifier_impl_unittest.cc 116 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, &obs2_)
    [all...]
pref_registry.cc 31 void PrefRegistry::SetDefaultPrefValue(const char* pref_name,
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));
pref_service_unittest.cc 26 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[] = "homepage" local
    [all...]
mock_pref_change_callback.h 19 // |pref_name| in |prefs| matches |value|. If |value| is NULL, the matcher
21 MATCHER_P3(PrefValueMatches, prefs, pref_name, value, "") {
23 prefs->FindPreference(pref_name.c_str());
45 void Expect(const std::string& pref_name,
pref_member.cc 28 void PrefMemberBase::Init(const char* pref_name,
32 Init(pref_name, prefs);
35 void PrefMemberBase::Init(const char* pref_name,
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) {
    [all...]
pref_change_registrar.h 68 const std::string& pref_name) OVERRIDE;
71 const std::string& pref_name);
pref_registry.h 43 // |pref_name| must be a previously registered preference.
44 void SetDefaultPrefValue(const char* pref_name, base::Value* value);
pref_member.h 106 void Init(const char* pref_name, PrefService* prefs,
108 void Init(const char* pref_name, PrefService* prefs);
120 const std::string& pref_name) OVERRIDE;
135 const std::string& pref_name() const { return pref_name_; } function in class:subtle::PrefMemberBase
141 const std::string& pref_name);
172 void Init(const char* pref_name, PrefService* prefs,
174 subtle::PrefMemberBase::Init(pref_name, prefs, observer);
176 void Init(const char* pref_name, PrefService* prefs,
179 pref_name, prefs,
182 void Init(const char* pref_name, PrefService* prefs)
    [all...]
  /external/chromium_org/chrome/browser/ui/webui/
gesture_config_ui.cc 54 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) || !args->GetDouble(1, &value)) return
    [all...]
instant_ui.cc 92 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/browser/ui/webui/options/
core_options_handler.h 46 // Fetches a pref value of given |pref_name|.
48 virtual base::Value* FetchPref(const std::string& pref_name);
50 // Observes a pref of given |pref_name|.
51 virtual void ObservePref(const std::string& pref_name);
53 // Stops observing given preference identified by |pref_name|.
54 virtual void StopObservingPref(const std::string& pref_name);
56 // Sets a pref |value| to given |pref_name|.
57 virtual void SetPref(const std::string& pref_name,
61 // Clears pref value for given |pref_name|.
62 void ClearPref(const std::string& pref_name, const std::string& metric)
    [all...]
core_options_handler.cc 195 const std::string& pref_name) {
196 if (pref_name == prefs::kClearPluginLSODataEnabled) {
201 if (pref_name == prefs::kPepperFlashSettingsEnabled) {
205 NotifyPrefChanged(pref_name, std::string());
263 base::Value* CoreOptionsHandler::FetchPref(const std::string& pref_name) {
264 return CreateValueForPref(pref_name, std::string());
267 void CoreOptionsHandler::ObservePref(const std::string& pref_name) {
268 if (g_browser_process->local_state()->FindPreference(pref_name.c_str())) {
270 pref_name.c_str(),
278 pref_name.c_str()))
475 std::string pref_name; local
502 std::string pref_name; local
543 std::string pref_name; local
624 std::string pref_name; local
    [all...]
  /external/chromium_org/chrome/browser/ui/webui/options/chromeos/
core_chromeos_options_handler.h 30 virtual base::Value* FetchPref(const std::string& pref_name) OVERRIDE;
32 virtual void ObservePref(const std::string& pref_name) OVERRIDE;
33 virtual void SetPref(const std::string& pref_name,
38 const std::string& pref_name,
52 const std::string& pref_name) OVERRIDE;
core_chromeos_options_handler.cc 150 const std::string& pref_name) {
151 if (proxy_cros_settings_parser::IsProxyPref(pref_name)) {
154 proxy_config_service_, pref_name, &value);
161 if (!CrosSettings::IsCrosSettings(pref_name)) {
163 pref_name == prefs::kUseSharedProxies ? prefs::kProxy : std::string();
164 return CreateValueForPref(pref_name, controlling_pref);
167 const base::Value* pref_value = CrosSettings::Get()->GetPref(pref_name);
174 if (pref_name == kAccountsPrefUsers)
180 if (IsSettingPrivileged(pref_name)) {
194 void CoreChromeOSOptionsHandler::ObservePref(const std::string& pref_name) {
    [all...]
  /external/chromium_org/components/metrics/
daily_event.h 43 // preference |pref_name|. |pref_name| should be registered by calling
45 // Caller is responsible for ensuring that |pref_service| and |pref_name|
50 const char* pref_name,
63 static void RegisterPref(PrefRegistrySimple* registry, const char* pref_name);
daily_event.cc 42 const char* pref_name,
45 pref_name_(pref_name),
54 const char* pref_name) {
55 registry->RegisterInt64Pref(pref_name, base::Time().ToInternalValue());
  /external/chromium_org/chrome/browser/
font_family_cache.cc 60 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) {
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());
font_family_cache_unittest.cc 43 std::string pref_name(map_name + '.' + script);
48 pref_name.c_str(),
55 prefs->SetString(pref_name.c_str(), font1.c_str());
77 prefs->SetString(pref_name.c_str(), font2.c_str());
  /external/chromium_org/chrome/browser/chromeos/extensions/
accessibility_features_apitest.cc 99 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) << "Invalid feature " << enabled_features[i]
133 const char* const pref_name = GetPrefForFeature(disabled_features[i]); local
    [all...]
  /external/chromium_org/chrome/browser/ui/prefs/
prefs_tab_helper.h 55 void OnFontFamilyPrefChanged(const std::string& pref_name);
56 void OnWebPrefChanged(const std::string& pref_name);

Completed in 961 milliseconds

1 2 3 4