/external/chromium_org/chrome/browser/prefs/ |
D | session_startup_pref_unittest.cc | 20 pref_service_.reset(new TestingPrefServiceSyncable); in SetUp() 44 return pref_service_->registry(); in registry() 47 scoped_ptr<TestingPrefServiceSyncable> pref_service_; member in SessionStartupPrefTest 54 pref_service_->SetUserPref(prefs::kURLsToRestoreOnStartup, url_pref_list); in TEST_F() 57 SessionStartupPref::GetStartupPref(pref_service_.get()); in TEST_F() 66 pref_service_->SetUserPref(prefs::kURLsToRestoreOnStartup, url_pref_list1); in TEST_F() 72 pref_service_->SetManagedPref(prefs::kURLsToRestoreOnStartup, in TEST_F() 76 SessionStartupPref::GetStartupPref(pref_service_.get()); in TEST_F() 82 SessionStartupPref::SetStartupPref(pref_service_.get(), override_test); in TEST_F() 84 result = SessionStartupPref::GetStartupPref(pref_service_.get()); in TEST_F() [all …]
|
D | pref_model_associator_unittest.cc | 16 pref_service_ = profile_.GetPrefs(); in SetUp() 38 pref_service_->FindPreference(pref_name.c_str()); in SetPrefToEmpty() 47 pref_service_->Set(pref_name.c_str(), *empty_value); in SetPrefToEmpty() 51 PrefService* pref_service_; member in AbstractPreferenceMergeTest 76 pref_service_->SetString(prefs::kHomePage, local_url0_); in TEST_F() 78 pref_service_->FindPreference(prefs::kHomePage); in TEST_F() 90 pref_service_->FindPreference(prefs::kURLsToRestoreOnStartup); in TEST_F() 101 ListPrefUpdate update(pref_service_, prefs::kURLsToRestoreOnStartup); in TEST_F() 107 pref_service_->FindPreference(prefs::kURLsToRestoreOnStartup); in TEST_F() 113 pref_service_->GetList(prefs::kURLsToRestoreOnStartup); in TEST_F() [all …]
|
D | synced_pref_change_registrar.cc | 22 pref_service_ = pref_service; in SyncedPrefChangeRegistrar() 38 pref_service_->AddSyncedPrefObserver(path, this); in Add() 43 pref_service_->RemoveSyncedPrefObserver(path, this); in Remove() 49 pref_service_->RemoveSyncedPrefObserver(iter->first, this); in RemoveAll() 60 if (pref_service_->IsManagedPreference(path.c_str())) in OnSyncedPrefChanged()
|
/external/chromium_org/components/sync_driver/ |
D | sync_prefs.cc | 20 SyncPrefs::SyncPrefs(PrefService* pref_service) : pref_service_(pref_service) { in SyncPrefs() 27 pref_service_, in SyncPrefs() 31 SyncPrefs::SyncPrefs() : pref_service_(NULL) {} in SyncPrefs() 163 pref_service_->ClearPref(prefs::kSyncLastSyncedTime); in ClearPreferences() 164 pref_service_->ClearPref(prefs::kSyncHasSetupCompleted); in ClearPreferences() 165 pref_service_->ClearPref(prefs::kSyncEncryptionBootstrapToken); in ClearPreferences() 166 pref_service_->ClearPref(prefs::kSyncKeystoreEncryptionBootstrapToken); in ClearPreferences() 174 return pref_service_->GetBoolean(prefs::kSyncHasSetupCompleted); in HasSyncSetupCompleted() 179 pref_service_->SetBoolean(prefs::kSyncHasSetupCompleted, true); in SetSyncSetupCompleted() 185 return pref_service_->GetBoolean(prefs::kSyncHasAuthError); in SyncHasAuthError() [all …]
|
D | sync_prefs_unittest.cc | 29 SyncPrefs::RegisterProfilePrefs(pref_service_.registry()); in SetUp() 32 user_prefs::TestingPrefServiceSyncable pref_service_; member in sync_driver::__anoncc0b269d0111::SyncPrefsTest 39 SyncPrefs sync_prefs(&pref_service_); in TEST_F() 68 SyncPrefs sync_prefs(&pref_service_); in TEST_F() 90 pref_service_.SetBoolean(prefs::kSyncTypedUrls, true); in TEST_F() 101 pref_service_.SetBoolean(prefs::kSyncTypedUrls, false); in TEST_F() 102 pref_service_.SetBoolean(prefs::kSyncSessions, true); in TEST_F() 109 SyncPrefs sync_prefs(&pref_service_); in TEST_F() 128 SyncPrefs sync_prefs(&pref_service_); in TEST_F() 184 SyncPrefs sync_prefs(&pref_service_); in TEST_F() [all …]
|
/external/chromium_org/components/invalidation/ |
D | invalidator_storage.cc | 86 : pref_service_(pref_service) { in InvalidatorStorage() 87 DCHECK(pref_service_); in InvalidatorStorage() 88 if (pref_service_->FindPreference(kInvalidatorMaxInvalidationVersions)) in InvalidatorStorage() 89 pref_service_->ClearPref(kInvalidatorMaxInvalidationVersions); in InvalidatorStorage() 98 pref_service_->SetString(prefs::kInvalidatorClientId, client_id); in ClearAndSetNewClientId() 102 return pref_service_->GetString(prefs::kInvalidatorClientId); in GetInvalidatorClientId() 109 pref_service_->SetString(prefs::kInvalidatorInvalidationState, in SetBootstrapData() 115 pref_service_->GetString(prefs::kInvalidatorInvalidationState)); in GetBootstrapData() 124 pref_service_->Set(prefs::kInvalidatorSavedInvalidations, *value.get()); in SetSavedInvalidations() 131 pref_service_->GetList(prefs::kInvalidatorSavedInvalidations); in GetSavedInvalidations() [all …]
|
/external/chromium_org/chromecast/common/ |
D | chromecast_config.cc | 69 pref_service_->CommitPendingWrite(); in ~ChromecastConfig() 90 pref_service_ = prefServiceFactory.Create(registry); in Load() 105 pref_service_->CommitPendingWrite(); in Save() 110 return pref_service_->GetString(key.c_str()); in GetValue() 114 return pref_service_->GetInteger(key.c_str()); in GetIntValue() 121 if (pref_service_->IsUserModifiablePreference(key.c_str())) { in SetValue() 123 pref_service_->SetString(key.c_str(), value); in SetValue() 132 if (pref_service_->IsUserModifiablePreference(key.c_str())) { in SetIntValue() 134 pref_service_->SetInteger(key.c_str(), value); in SetIntValue() 143 return pref_service_->HasPrefPath(key.c_str()); in HasValue()
|
/external/chromium_org/chrome/browser/prefs/tracked/ |
D | pref_service_hash_store_contents.cc | 67 : hash_store_id_(hash_store_id), pref_service_(pref_service) { in PrefServiceHashStoreContents() 69 DictionaryPrefUpdate update(pref_service_, kProfilePreferenceHashes); in PrefServiceHashStoreContents() 91 DictionaryPrefUpdate update(pref_service_, kProfilePreferenceHashes); in Reset() 105 pref_service_->ClearPref(kProfilePreferenceHashes); in Reset() 110 pref_service_->GetDictionary(kProfilePreferenceHashes); in IsInitialized() 117 pref_service_->GetDictionary(kProfilePreferenceHashes); in GetContents() 127 new PrefServiceMutableDictionary(hash_store_id_, pref_service_)); in GetMutableContents() 132 pref_service_->GetDictionary(kProfilePreferenceHashes); in GetSuperMac() 144 PrefServiceMutableDictionary(kHashOfHashesDict, pref_service_) in SetSuperMac()
|
/external/chromium_org/base/prefs/ |
D | pref_change_registrar_unittest.cc | 131 pref_service_.reset(new TestingPrefServiceSimple); in SetUp() 132 PrefRegistrySimple* registry = pref_service_->registry(); in SetUp() 141 pref_set->Init(pref_service_.get()); in CreatePrefChangeRegistrar() 149 scoped_ptr<TestingPrefServiceSimple> pref_service_; member in base::ObserveSetOfPreferencesTest 162 pref_service_->SetManagedPref(kHomePage, in TEST_F() 165 pref_service_->SetManagedPref(kHomePageIsNewTabPage, in TEST_F() 168 pref_service_->RemoveManagedPref(kHomePage); in TEST_F() 170 pref_service_->RemoveManagedPref(kHomePageIsNewTabPage); in TEST_F() 182 pref_set.Init(pref_service_.get()); in TEST_F() 187 pref_service_->SetUserPref(kHomePage, new StringValue("http://crbug.com")); in TEST_F() [all …]
|
D | pref_notifier_impl_unittest.cc | 89 pref_service_.registry()->RegisterBooleanPref(kChangedPref, true); in SetUp() 90 pref_service_.registry()->RegisterBooleanPref(kUnchangedPref, true); in SetUp() 93 TestingPrefServiceSimple pref_service_; member in __anon537a41eb0111::PrefNotifierTest 100 MockPrefNotifier notifier(&pref_service_); in TEST_F() 106 MockPrefNotifier notifier(&pref_service_); in TEST_F() 119 MockPrefNotifier notifier(&pref_service_); in TEST_F() 179 TestingPrefNotifierImpl notifier(&pref_service_); in TEST_F() 183 EXPECT_CALL(obs1_, OnPreferenceChanged(&pref_service_, kChangedPref)); in TEST_F() 192 EXPECT_CALL(obs1_, OnPreferenceChanged(&pref_service_, kChangedPref)); in TEST_F() 193 EXPECT_CALL(obs2_, OnPreferenceChanged(&pref_service_, kChangedPref)); in TEST_F() [all …]
|
D | pref_notifier_impl.cc | 12 : pref_service_(NULL) { in PrefNotifierImpl() 16 : pref_service_(service) { in PrefNotifierImpl() 101 if (!pref_service_->FindPreference(path.c_str())) in FireObservers() 111 OnPreferenceChanged(pref_service_, path)); in FireObservers() 115 DCHECK(pref_service_ == NULL); in SetPrefService() 116 pref_service_ = pref_service; in SetPrefService()
|
/external/chromium_org/chrome/browser/invalidation/ |
D | invalidator_storage_unittest.cc | 21 InvalidatorStorage::RegisterProfilePrefs(pref_service_.registry()); in SetUp() 25 TestingPrefServiceSyncable pref_service_; member in invalidation::InvalidatorStorageTest 31 InvalidatorStorage storage(&pref_service_); in TEST_F() 48 InvalidatorStorage storage(&pref_service_); in TEST_F() 56 InvalidatorStorage storage(&pref_service_); in TEST_F() 65 InvalidatorStorage storage(&pref_service_); in TEST_F() 76 InvalidatorStorage storage(&pref_service_); in TEST_F()
|
/external/chromium_org/chrome/browser/net/ |
D | pref_proxy_config_tracker_impl_unittest.cc | 121 pref_service_.reset(new TestingPrefServiceSimple()); in SetUp() 122 Init(pref_service_.get(), pref_service_->registry()); in SetUp() 125 scoped_ptr<TestingPrefServiceSimple> pref_service_; member in __anonb15b722a0111::PrefProxyConfigTrackerImplTest 136 pref_service_->SetManagedPref(prefs::kProxy, in TEST_F() 151 pref_service_->SetManagedPref(prefs::kProxy, in TEST_F() 188 pref_service_->SetManagedPref( in TEST_F() 206 pref_service_->RemoveManagedPref(prefs::kProxy); in TEST_F() 240 pref_service_->SetRecommendedPref( in TEST_F() 253 pref_service_->SetManagedPref( in TEST_F() 266 pref_service_->RemoveManagedPref(prefs::kProxy); in TEST_F() [all …]
|
/external/chromium_org/components/data_reduction_proxy/browser/ |
D | data_reduction_proxy_statistics_prefs.cc | 23 : pref_service_(prefs), in DataReductionProxyStatisticsPrefs() 67 int64 pref_value = pref_service_->GetInt64(pref); in InitInt64Pref() 73 pref_service_->GetList(pref)->DeepCopy()); in InitListPref() 79 return pref_service_->GetInt64(pref_path); in GetInt64() 88 pref_service_->SetInt64(pref_path, pref_value); in SetInt64() 99 return ListPrefUpdate(pref_service_, pref_path).Get(); in GetList() 111 pref_service_->SetInt64(iter->first, iter->second); in WritePrefs() 117 ListPrefUpdate(pref_service_, iter->first).Get()); in WritePrefs()
|
D | data_reduction_proxy_settings_test_utils.cc | 81 PrefRegistrySimple* registry = pref_service_.registry(); in SetUp() 93 &pref_service_, in SetUp() 101 ListPrefUpdate original_update(&pref_service_, in SetUp() 103 ListPrefUpdate received_update(&pref_service_, in SetUp() 144 .WillRepeatedly(Return(&pref_service_)); in ResetSettings() 147 .WillRepeatedly(Return(&pref_service_)); in ResetSettings() 219 pref_service_.SetBoolean(prefs::kDataReductionProxyEnabled, in CheckProbe() 265 pref_service_.SetManagedPref(prefs::kDataReductionProxyEnabled, in CheckOnPrefChange() 268 pref_service_.SetBoolean(prefs::kDataReductionProxyEnabled, enabled); in CheckOnPrefChange() 290 &pref_service_, in CheckInitDataReductionProxy()
|
/external/chromium_org/components/dom_distiller/core/ |
D | distilled_page_prefs.cc | 25 : pref_service_(pref_service), weak_ptr_factory_(this) { in DistilledPagePrefs() 46 pref_service_->SetInteger(kFontPref, new_font_family); in SetFontFamily() 55 int font_family = pref_service_->GetInteger(kFontPref); in GetFontFamily() 66 pref_service_->SetInteger(kThemePref, new_theme); in SetTheme() 75 int theme = pref_service_->GetInteger(kThemePref); in GetTheme()
|
/external/chromium_org/chrome/browser/android/accessibility/ |
D | font_size_prefs_android.cc | 16 : pref_service_(ProfileManager::GetActiveUserProfile()->GetPrefs()) { in FontSizePrefsAndroid() 19 pref_change_registrar_->Init(pref_service_); in FontSizePrefsAndroid() 36 pref_service_->SetDouble(prefs::kWebKitFontScaleFactor, in SetFontScaleFactor() 41 return pref_service_->GetDouble(prefs::kWebKitFontScaleFactor); in GetFontScaleFactor() 47 pref_service_->SetBoolean(prefs::kWebKitForceEnableZoom, enabled); in SetForceEnableZoom() 51 return pref_service_->GetBoolean(prefs::kWebKitForceEnableZoom); in GetForceEnableZoom()
|
/external/chromium_org/components/bookmarks/browser/ |
D | bookmark_expanded_state_tracker.cc | 20 pref_service_(pref_service) { in BookmarkExpandedStateTracker() 37 if (!pref_service_) in GetExpandedNodes() 41 pref_service_->GetList(prefs::kBookmarkEditorExpandedNodes); in GetExpandedNodes() 102 if (!pref_service_) in UpdatePrefs() 111 pref_service_->Set(prefs::kBookmarkEditorExpandedNodes, values); in UpdatePrefs()
|
/external/chromium_org/components/search_engines/ |
D | default_search_manager.cc | 79 : pref_service_(pref_service), in DefaultSearchManager() 82 if (pref_service_) { in DefaultSearchManager() 83 pref_change_registrar_.Init(pref_service_); in DefaultSearchManager() 153 if (!pref_service_) { in SetUserSelectedDefaultSearchEngine() 210 pref_service_->Set(kDefaultSearchProviderDataPrefName, url_dict); in SetUserSelectedDefaultSearchEngine() 228 if (pref_service_) { in ClearUserSelectedDefaultSearchEngine() 229 pref_service_->ClearPref(kDefaultSearchProviderDataPrefName); in ClearUserSelectedDefaultSearchEngine() 264 TemplateURLPrepopulateData::GetPrepopulatedEngines(pref_service_, in MergePrefsDataWithPrepopulated() 288 if (!pref_service_) in LoadDefaultSearchEngineFromPrefs() 293 pref_service_->FindPreference(kDefaultSearchProviderDataPrefName); in LoadDefaultSearchEngineFromPrefs() [all …]
|
/external/chromium_org/chrome/browser/extensions/ |
D | extension_management_unittest.cc | 73 pref_service_.reset(new TestingPrefServiceSimple()); in InitPrefService() 74 pref_service_->registry()->RegisterListPref( in InitPrefService() 76 pref_service_->registry()->RegisterListPref(pref_names::kAllowedTypes); in InitPrefService() 77 pref_service_->registry()->RegisterListPref(pref_names::kInstallDenyList); in InitPrefService() 78 pref_service_->registry()->RegisterListPref(pref_names::kInstallAllowList); in InitPrefService() 79 pref_service_->registry()->RegisterDictionaryPref( in InitPrefService() 81 pref_service_->registry()->RegisterDictionaryPref( in InitPrefService() 83 extension_management_.reset(new ExtensionManagement(pref_service_.get())); in InitPrefService() 88 pref_service_->SetManagedPref(path, value); in SetPref() 90 pref_service_->SetUserPref(path, value); in SetPref() [all …]
|
D | test_extension_prefs.cc | 79 return pref_service_.get(); in pref_service() 96 if (pref_service_) { in RecreateExtensionPrefs() 99 pref_service_->CommitPendingWrite(); in RecreateExtensionPrefs() 114 pref_service_ = factory.CreateSyncable(pref_registry_.get()).Pass(); in RecreateExtensionPrefs() 117 pref_service_.get(), in RecreateExtensionPrefs() 181 return pref_service_->CreateIncognitoPrefService( in CreateIncognitoPrefService()
|
/external/chromium_org/chrome/browser/themes/ |
D | theme_service_aurax11.cc | 34 PrefService* const pref_service_; member in __anon6e4112300111::SystemThemeX11 42 pref_service_(pref_service) {} in SystemThemeX11() 45 pref_service_->SetBoolean(prefs::kUsesSystemTheme, true); in StartUsingTheme() 51 pref_service_->SetBoolean(prefs::kUsesSystemTheme, false); in StopUsingTheme()
|
/external/chromium_org/chrome/browser/chromeos/ |
D | proxy_config_service_impl_unittest.cc | 223 PrefProxyConfigTrackerImpl::RegisterPrefs(pref_service_.registry()); in SetUp() 228 &pref_service_)); in SetUp() 327 TestingPrefServiceSimple pref_service_; member in chromeos::ProxyConfigServiceImplTest 400 pref_service_.SetManagedPref(prefs::kProxy, managed_config.DeepCopy()); in TEST_F() 401 pref_service_.SetRecommendedPref(prefs::kProxy, in TEST_F() 412 pref_service_.RemoveManagedPref(prefs::kProxy); in TEST_F() 428 pref_service_.SetManagedPref(prefs::kProxy, managed_config.DeepCopy()); in TEST_F() 437 pref_service_.RemoveManagedPref(prefs::kProxy); in TEST_F() 445 pref_service_.RemoveRecommendedPref(prefs::kProxy); in TEST_F()
|
/external/chromium_org/components/suggestions/ |
D | suggestions_store.cc | 18 : pref_service_(profile_prefs) { in SuggestionsStore() 28 pref_service_->GetString(prefs::kSuggestionsData); in LoadSuggestions() 83 pref_service_->SetString(prefs::kSuggestionsData, base64_suggestions_data); in StoreSuggestions() 88 pref_service_->ClearPref(prefs::kSuggestionsData); in ClearSuggestions()
|
/external/chromium_org/chrome/browser/net/spdyproxy/ |
D | data_reduction_proxy_chrome_configurator_unittest.cc | 21 PrefRegistrySimple* registry = pref_service_.registry(); in SetUp() 24 &pref_service_, in SetUp() 34 pref_service_.GetDictionary(prefs::kProxy); in CheckProxyConfig() 47 TestingPrefServiceSimple pref_service_; member in DataReductionProxyConfigTest
|