/external/chromium_org/base/prefs/ |
H A D | mock_pref_change_callback.h | 22 const PrefService::Preference* pref = local 24 if (!pref) 27 const base::Value* actual_value = pref->GetValue();
|
H A D | pref_change_registrar.cc | 37 DCHECK(!IsObserved(path)) << "Already had this pref registered."; 63 bool PrefChangeRegistrar::IsObserved(const std::string& pref) { argument 64 return observers_.find(pref) != observers_.end(); 70 const PrefService::Preference* pref = local 72 if (pref && pref->IsManaged()) 79 const std::string& pref) { 80 if (IsObserved(pref)) 81 observers_[pref].Run(pref); 78 OnPreferenceChanged(PrefService* service, const std::string& pref) argument [all...] |
H A D | pref_service_unittest.cc | 21 const char kPrefName[] = "pref.name"; 41 // Setting the pref to the same value should not set the pref value a second 47 // Clearing the pref should cause the pref to fire. 53 // Clearing the pref again should not cause the pref to fire. 100 // Now try adding a second pref observer. 133 // the user pref file, it uses the correct fallback value instead. 142 const PrefService::Preference* pref local 160 const PrefService::Preference* pref = prefs.FindPreference(kPrefName); local [all...] |
/external/chromium_org/chrome/common/extensions/docs/examples/api/preferences/allowThirdPartyCookies/ |
H A D | popup.js | 6 var pref = chrome.privacy.websites.thirdPartyCookiesAllowed; variable 54 console.log('pref.get result:' + JSON.stringify(settings)); 67 console.log('pref.onChange event:' + JSON.stringify(settings)); 77 pref.get({'incognito': true}, updateUIFromGet); 82 pref.get({}, updateUIFromGet); 83 pref.onChange.addListener(updateUIFromOnChange); 104 pref.set({'value': enabled, 'scope': scope}); 116 pref.clear({'incognito': true}); 119 pref.get({'incognito': true}, function(settings) { 120 pref [all...] |
/external/chromium_org/chrome/common/extensions/docs/examples/api/preferences/enableReferrer/ |
H A D | popup.js | 6 var pref = chrome.privacy.websites.referrersEnabled; variable 54 console.log('pref.get result:' + JSON.stringify(settings)); 67 console.log('pref.onChange event:' + JSON.stringify(settings)); 77 pref.get({'incognito': true}, updateUIFromGet); 82 pref.get({}, updateUIFromGet); 83 pref.onChange.addListener(updateUIFromOnChange); 104 pref.set({'value': enabled, 'scope': scope}); 116 pref.clear({'incognito': true}); 119 pref.get({'incognito': true}, function(settings) { 120 pref [all...] |
/external/chromium_org/chrome/browser/extensions/api/preference/ |
H A D | preference_apitest.cc | 37 const PrefService::Preference* pref = prefs->FindPreference( local 39 ASSERT_TRUE(pref); 40 EXPECT_TRUE(pref->IsExtensionControlled()); 57 const PrefService::Preference* pref = prefs->FindPreference( local 59 ASSERT_TRUE(pref); 60 EXPECT_FALSE(pref->IsExtensionControlled()); 155 const PrefService::Preference* pref = local 157 ASSERT_TRUE(pref); 158 EXPECT_TRUE(pref->IsExtensionControlled()); 161 pref 183 const PrefService::Preference* pref = local 201 const PrefService::Preference* pref = prefs->FindPreference( local [all...] |
/external/chromium_org/chrome/browser/prefs/ |
H A D | pref_functional_browsertest.cc | 53 // Set pref to download in new_download_dir. 128 // Verify DNS prefetching pref. 198 const PrefService::Preference* pref = local 200 if (pref && !pref->IsManaged()) {
|
H A D | session_startup_pref_unittest.cc | 26 // Make the tests independent of the Mac startup pref migration (see 101 SessionStartupPref pref = SessionStartupPref::GetStartupPref( local 105 EXPECT_EQ(SessionStartupPref::LAST, pref.type); 106 EXPECT_EQ(0U, pref.urls.size()); 108 EXPECT_EQ(SessionStartupPref::URLS, pref.type); 109 EXPECT_EQ(1U, pref.urls.size()); 110 EXPECT_EQ(GURL("http://chromium.org/"), pref.urls[0]); 128 SessionStartupPref pref = SessionStartupPref::GetStartupPref( local 132 EXPECT_EQ(SessionStartupPref::LAST, pref.type); 134 EXPECT_EQ(SessionStartupPref::DEFAULT, pref 155 SessionStartupPref pref = SessionStartupPref::GetStartupPref( local 179 SessionStartupPref pref = SessionStartupPref::GetStartupPref( local 196 SessionStartupPref pref = SessionStartupPref::GetStartupPref( local [all...] |
H A D | chrome_pref_service_unittest.cc | 38 const PrefService::Preference* pref = local 40 ASSERT_TRUE(pref); 41 const base::Value* value = pref->GetValue(); 54 pref = prefs.FindPreference(prefs::kCloudPrintProxyEnabled); 55 ASSERT_TRUE(pref); 56 value = pref->GetValue();
|
H A D | browser_prefs.cc | 222 // The sync promo error message preference has been removed; this pref will 566 // Copy pref values which have been migrated to user_prefs from local_state, 589 const PrefService::Preference* pref = local 591 DCHECK(pref); 593 *(pref->GetValue()));
|
/external/chromium_org/chrome/browser/ui/webui/ |
H A D | gesture_config_ui.cc | 59 const PrefService::Preference* pref = local 64 base::FundamentalValue js_pref_default(pref->IsDefaultValue()); 92 const PrefService::Preference* pref = local 94 switch (pref->GetType()) {
|
/external/chromium_org/chrome/browser/chromeos/settings/ |
H A D | stub_cros_settings_provider_unittest.cc | 43 const base::Value* pref = provider_->Get(prefName); local 44 ASSERT_TRUE(pref); 45 ASSERT_TRUE(pref->Equals(value));
|
/external/chromium_org/chrome/browser/metrics/ |
H A D | metrics_reporting_state.cc | 99 const PrefService::Preference* pref = local 101 return pref && !pref->IsManaged();
|
/external/chromium_org/chrome/browser/renderer_context_menu/ |
H A D | spellchecker_submenu_observer_hunspell.cc | 137 const PrefService* pref = profile->GetPrefs(); local 140 return pref->GetBoolean(prefs::kEnableContinuousSpellcheck);
|
H A D | spelling_bubble_model.cc | 74 PrefService* pref = profile_->GetPrefs(); local 75 DCHECK(pref); 76 pref->SetBoolean(prefs::kSpellCheckUseSpellingService, enabled); 78 pref->SetBoolean(prefs::kEnableAutoSpellCorrect, enabled);
|
/external/chromium_org/chrome/browser/ui/webui/options/ |
H A D | settings_format_browsertest.js | 18 * Exemption for checkboxes that do not require an id or pref property. 21 'pref': ['language-options-input-method-template', 31 MISSING_ID_OR_PREF: 'Missing id or pref preoperty for checkbox $1.', 89 if (element.pref) 90 return element.pref; 132 * Each checkbox requires an id or pref property. 136 'input[type=checkbox]:not([pref]):not([id]):not(.spacer-checkbox)'; 140 if (!this.isExempt(element, SettingsFormatWebUITest.Filters['pref']))
|
/external/chromium_org/athena/main/ |
H A D | athena_frame_view.cc | 65 gfx::Size pref = frame_->client_view()->GetPreferredSize(); local 66 gfx::Rect bounds(0, 0, pref.width(), pref.height());
|
/external/chromium_org/chrome/browser/chromeos/login/saml/ |
H A D | saml_offline_signin_limiter_unittest.cc | 113 const PrefService::Preference* pref = local 115 ASSERT_TRUE(pref); 116 EXPECT_FALSE(pref->HasUserSetting()); 132 pref = prefs->FindPreference(prefs::kSAMLLastGAIASignInTime); 133 ASSERT_TRUE(pref); 134 EXPECT_FALSE(pref->HasUserSetting()); 157 const PrefService::Preference* pref = local 159 ASSERT_TRUE(pref); 160 EXPECT_FALSE(pref->HasUserSetting()); 176 pref 201 const PrefService::Preference* pref = local 245 const PrefService::Preference* pref = local 274 const PrefService::Preference* pref = local 306 const PrefService::Preference* pref = local [all...] |
/external/chromium_org/chrome/browser/chromeos/policy/ |
H A D | recommendation_restorer.cc | 98 const PrefService::Preference* pref = local 100 if (!pref) { 105 if (!pref->GetRecommendedValue() || !pref->HasUserSetting()) 120 pref_change_registrar_.prefs()->ClearPref(pref->name().c_str()); 143 // There should be a separate timer for each pref. However, in the common 146 // if there was a separate timer per pref, they would all be reset at that 150 // for the affected pref only.
|
/external/chromium_org/chrome/browser/extensions/api/proxy/ |
H A D | proxy_apitest.cc | 33 const PrefService::Preference* pref = local 35 ASSERT_TRUE(pref != NULL); 36 EXPECT_TRUE(pref->IsExtensionControlled()); 68 const PrefService::Preference* pref = local 70 ASSERT_TRUE(pref != NULL); 71 EXPECT_FALSE(pref->IsExtensionControlled());
|
/external/chromium_org/chrome/browser/ui/ash/multi_user/ |
H A D | multi_user_context_menu_chromeos.cc | 105 PrefService* pref = ProfileManager::GetActiveUserProfile()->GetPrefs(); local 106 pref->SetBoolean(prefs::kMultiProfileWarningShowDismissed, no_show_again);
|
/external/chromium_org/chrome/browser/ui/webui/chromeos/ |
H A D | salsa_ui.cc | 120 const PrefService::Preference* pref = local 123 if (pref->GetType() == value->GetType()) { 125 } else if (pref->GetType() == base::Value::TYPE_DOUBLE && 146 const PrefService::Preference* pref = local 149 if (!pref) 156 pref->IsDefaultValue() ? NULL : pref->GetValue()->DeepCopy();
|
/external/chromium_org/components/data_reduction_proxy/browser/ |
H A D | data_reduction_proxy_statistics_prefs.cc | 66 void DataReductionProxyStatisticsPrefs::InitInt64Pref(const char* pref) { argument 67 int64 pref_value = pref_service_->GetInt64(pref); 68 pref_map_[pref] = pref_value; 71 void DataReductionProxyStatisticsPrefs::InitListPref(const char* pref) { argument 73 pref_service_->GetList(pref)->DeepCopy()); 74 list_pref_map_.add(pref, pref_value.Pass());
|
H A D | data_reduction_proxy_statistics_prefs_unittest.cc | 45 // Create daily pref list of |kNumDaysInHistory| zero values. 46 void CreatePrefList(const char* pref) { argument 47 base::ListValue* update = statistics_prefs_->GetList(pref); 54 // Verify the pref list values in |pref_service_| are equal to those in 55 // |simple_pref_service| for |pref|. 56 void VerifyPrefListWasWritten(const char* pref) { argument 57 const base::ListValue* delayed_list = statistics_prefs_->GetList(pref); 58 const base::ListValue* written_list = simple_pref_service_.GetList(pref); 68 // Verify the pref value in |pref_service_| are equal to that in 70 void VerifyPrefWasWritten(const char* pref) { argument [all...] |
/external/chromium_org/ui/views/controls/ |
H A D | scroll_view_unittest.cc | 34 gfx::Size pref = GetPreferredSize(); variable 35 int width = pref.width(); 36 int height = pref.height();
|