/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 | 27 void ChangeBooleanPref(int index, const char* pref_name) { 28 bool new_value = !GetPrefs(index)->GetBoolean(pref_name); 29 GetPrefs(index)->SetBoolean(pref_name, new_value); 31 GetVerifierPrefs()->SetBoolean(pref_name, new_value); 34 void ChangeIntegerPref(int index, const char* pref_name, int new_value) { 35 GetPrefs(index)->SetInteger(pref_name, new_value); 37 GetVerifierPrefs()->SetInteger(pref_name, new_value); 40 void ChangeInt64Pref(int index, const char* pref_name, int64 new_value) { 41 GetPrefs(index)->SetInt64(pref_name, new_value); 43 GetVerifierPrefs()->SetInt64(pref_name, new_value) 80 ListPrefUpdate update(GetPrefs(index), pref_name); local 90 ListPrefUpdate update_verifier(GetVerifierPrefs(), pref_name); local [all...] |
/external/chromium/chrome/browser/prefs/ |
pref_observer_mock.cc | 12 const std::string& pref_name, 17 Pointee(pref_name)))) 18 .With(PrefValueMatches(prefs, pref_name, value));
|
pref_notifier.h | 20 // |pref_name|. 21 virtual void OnPreferenceChanged(const std::string& pref_name) = 0;
|
pref_observer_mock.h | 23 // |pref_name| in |prefs| matches |value|. If |value| is NULL, the matcher 25 MATCHER_P3(PrefValueMatches, prefs, pref_name, value, "") { 27 prefs->FindPreference(pref_name.c_str()); 50 const std::string& pref_name,
|
pref_notifier_impl_unittest.cc | 95 const char pref_name[] = "homepage"; local 99 notifier.AddPrefObserver(pref_name, &obs1_); 100 ASSERT_EQ(1u, notifier.CountObserver(pref_name, &obs1_)); 102 ASSERT_EQ(0u, notifier.CountObserver(pref_name, &obs2_)); 109 notifier.AddPrefObserver(pref_name, &obs1_); 110 ASSERT_EQ(1u, notifier.CountObserver(pref_name, &obs1_)); 112 ASSERT_EQ(0u, notifier.CountObserver(pref_name, &obs2_)); 118 ASSERT_EQ(1u, notifier.CountObserver(pref_name, &obs1_)); 120 ASSERT_EQ(0u, notifier.CountObserver(pref_name, &obs2_)); 124 notifier.AddPrefObserver(pref_name, &obs2_) [all...] |
/external/chromium/chrome/browser/ui/webui/options/chromeos/ |
core_chromeos_options_handler.h | 20 virtual Value* FetchPref(const std::string& pref_name); 21 virtual void ObservePref(const std::string& pref_name); 22 virtual void SetPref(const std::string& pref_name,
|
core_chromeos_options_handler.cc | 22 Value* CoreChromeOSOptionsHandler::FetchPref(const std::string& pref_name) { 23 if (!CrosSettings::IsCrosSettings(pref_name)) 24 return ::CoreOptionsHandler::FetchPref(pref_name); 27 CrosSettings::Get()->Get(pref_name, &pref_value); 31 void CoreChromeOSOptionsHandler::ObservePref(const std::string& pref_name) { 32 if (!CrosSettings::IsCrosSettings(pref_name)) 33 return ::CoreOptionsHandler::ObservePref(pref_name); 36 CrosSettings::Get()->AddSettingsObserver(pref_name.c_str(), this); 39 void CoreChromeOSOptionsHandler::SetPref(const std::string& pref_name, 42 if (!CrosSettings::IsCrosSettings(pref_name)) [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 | 85 const std::string& pref_name, 87 EXPECT_CALL(*this, OnPreferenceChanged(prefs, pref_name)) 88 .With(PrefValueMatches(prefs, pref_name, value)); 123 const char pref_name[] = "homepage"; local 127 notifier.AddPrefObserver(pref_name, &obs1_); 128 ASSERT_EQ(1u, notifier.CountObserver(pref_name, &obs1_)); 130 ASSERT_EQ(0u, notifier.CountObserver(pref_name, &obs2_)); 137 notifier.AddPrefObserver(pref_name, &obs1_); 138 ASSERT_EQ(1u, notifier.CountObserver(pref_name, &obs1_)); 140 ASSERT_EQ(0u, notifier.CountObserver(pref_name, &obs2_)) [all...] |
pref_registry.cc | 31 void PrefRegistry::SetDefaultPrefValue(const char* pref_name, 36 DCHECK(defaults_->GetValue(pref_name, ¤t_value)) 37 << "Setting default for unregistered pref: " << pref_name; 39 << "Wrong type for new default: " << pref_name; 42 defaults_->ReplaceDefaultValue(pref_name, make_scoped_ptr(value));
|
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,
|
/external/chromium/chrome/browser/importer/ |
firefox_importer_utils_unittest.cc | 11 std::string pref_name; member in struct:GetPrefsJsValueCase 40 GetPrefsJsValueCases[i].pref_name));
|
/external/chromium/chrome/browser/chromeos/ |
preferences.cc | 63 language_prefs::kChewingBooleanPrefs[i].pref_name, 68 language_prefs::kChewingMultipleChoicePrefs[i].pref_name, 72 language_prefs::kChewingHsuSelKeyType.pref_name, 77 language_prefs::kChewingIntegerPrefs[i].pref_name, 87 language_prefs::kPinyinBooleanPrefs[i].pref_name, 92 language_prefs::kPinyinIntegerPrefs[i].pref_name, 96 language_prefs::kPinyinDoublePinyinSchema.pref_name, 101 language_prefs::kMozcBooleanPrefs[i].pref_name, 106 language_prefs::kMozcMultipleChoicePrefs[i].pref_name, 111 language_prefs::kMozcIntegerPrefs[i].pref_name, [all...] |
/external/chromium_org/chrome/browser/ui/webui/ |
gesture_config_ui.cc | 55 std::string pref_name; local 57 if (!args->GetString(0, &pref_name)) return; 61 prefs->FindPreference(pref_name.c_str()); 63 base::StringValue js_pref_name(pref_name); 64 base::FundamentalValue js_pref_value(prefs->GetDouble(pref_name.c_str())); 75 std::string pref_name; local 77 if (!args->GetString(0, &pref_name)) return; 81 prefs->ClearPref(pref_name.c_str()); 86 std::string pref_name; local 89 if (!args->GetString(0, &pref_name) || !args->GetDouble(1, &value)) return [all...] |
/external/chromium_org/chrome/browser/ui/webui/options/chromeos/ |
core_chromeos_options_handler.cc | 126 const std::string& pref_name) { 127 if (proxy_cros_settings_parser::IsProxyPref(pref_name)) { 130 proxy_config_service_, pref_name, &value); 136 if (!CrosSettings::IsCrosSettings(pref_name)) { 138 pref_name == prefs::kUseSharedProxies ? prefs::kProxy : std::string(); 139 return CreateValueForPref(pref_name, controlling_pref); 142 const base::Value* pref_value = CrosSettings::Get()->GetPref(pref_name); 149 if (pref_name == kAccountsPrefUsers) 155 bool disabled_by_owner = IsSettingOwnerOnly(pref_name) && 163 void CoreChromeOSOptionsHandler::ObservePref(const std::string& pref_name) { [all...] |
core_chromeos_options_handler.h | 27 virtual base::Value* FetchPref(const std::string& pref_name) OVERRIDE; 29 virtual void ObservePref(const std::string& pref_name) OVERRIDE; 30 virtual void SetPref(const std::string& pref_name, 41 const std::string& pref_name) OVERRIDE;
|
/external/chromium_org/chrome/browser/ui/webui/options/ |
core_options_handler.h | 45 // Fetches a pref value of given |pref_name|. 47 virtual base::Value* FetchPref(const std::string& pref_name); 49 // Observes a pref of given |pref_name|. 50 virtual void ObservePref(const std::string& pref_name); 52 // Stops observing given preference identified by |pref_name|. 53 virtual void StopObservingPref(const std::string& pref_name); 55 // Sets a pref |value| to given |pref_name|. 56 virtual void SetPref(const std::string& pref_name, 60 // Clears pref value for given |pref_name|. 61 void ClearPref(const std::string& pref_name, const std::string& metric) [all...] |
core_options_handler.cc | 163 const std::string& pref_name) { 164 if (pref_name == prefs::kClearPluginLSODataEnabled) { 169 if (pref_name == prefs::kPepperFlashSettingsEnabled) { 173 NotifyPrefChanged(pref_name, std::string()); 223 base::Value* CoreOptionsHandler::FetchPref(const std::string& pref_name) { 224 return CreateValueForPref(pref_name, std::string()); 227 void CoreOptionsHandler::ObservePref(const std::string& pref_name) { 228 if (g_browser_process->local_state()->FindPreference(pref_name.c_str())) { 230 pref_name.c_str(), 238 pref_name.c_str())) 433 std::string pref_name; local 460 std::string pref_name; local 500 std::string pref_name; local 581 std::string pref_name; local [all...] |
/external/chromium/chrome/browser/net/ |
net_pref_observer.cc | 52 std::string* pref_name = Details<std::string>(details).ptr(); local 53 ApplySettings(pref_name); 56 void NetPrefObserver::ApplySettings(const std::string* pref_name) { 64 if (!pref_name || *pref_name == prefs::kHttpThrottlingEnabled) {
|
/external/chromium/chrome/browser/ |
plugin_data_remover_helper.cc | 20 explicit Internal(const char* pref_name, PrefService* prefs) 21 : pref_name_(pref_name), prefs_(prefs) {} 73 void PluginDataRemoverHelper::Init(const char* pref_name, 76 pref_.Init(pref_name, prefs, observer); 79 internal_ = make_scoped_refptr(new Internal(pref_name, prefs));
|
/external/chromium/chrome/browser/ui/webui/options/ |
core_options_handler.h | 43 // Fetches a pref value of given |pref_name|. 45 virtual Value* FetchPref(const std::string& pref_name); 47 // Observes a pref of given |pref_name|. 48 virtual void ObservePref(const std::string& pref_name); 50 // Sets a pref |value| to given |pref_name|. 51 virtual void SetPref(const std::string& pref_name, 55 // Clears pref value for given |pref_name|. 56 void ClearPref(const std::string& pref_name, const std::string& metric); 109 void NotifyPrefChanged(const std::string* pref_name);
|
/external/chromium_org/chrome/browser/chromeos/ |
preferences.cc | 399 void Preferences::OnPreferenceChanged(const std::string& pref_name) { 400 NotifyPrefChanged(&pref_name); 403 void Preferences::NotifyPrefChanged(const std::string* pref_name) { 404 if (!pref_name || *pref_name == prefs::kPerformanceTracingEnabled) { 411 if ((!pref_name && is_primary_user_prefs_) || 412 (pref_name && *pref_name == prefs::kTapToClickEnabled)) { 415 if (pref_name) 427 if ((!pref_name && is_primary_user_prefs_) | [all...] |