Home
last modified time | relevance | path

Searched refs:pref_service_ (Results 1 – 25 of 83) sorted by relevance

1234

/external/chromium_org/chrome/browser/prefs/
Dsession_startup_pref_unittest.cc20 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 …]
Dpref_model_associator_unittest.cc16 pref_service_ = profile_.GetPrefs(); in SetUp()
39 pref_service_->FindPreference(pref_name.c_str()); in SetPrefToEmpty()
48 pref_service_->Set(pref_name.c_str(), *empty_value); in SetPrefToEmpty()
52 PrefService* pref_service_; member in AbstractPreferenceMergeTest
77 pref_service_->SetString(prefs::kHomePage, local_url0_); in TEST_F()
79 pref_service_->FindPreference(prefs::kHomePage); in TEST_F()
91 pref_service_->FindPreference(prefs::kURLsToRestoreOnStartup); in TEST_F()
102 ListPrefUpdate update(pref_service_, prefs::kURLsToRestoreOnStartup); in TEST_F()
108 pref_service_->FindPreference(prefs::kURLsToRestoreOnStartup); in TEST_F()
114 pref_service_->GetList(prefs::kURLsToRestoreOnStartup); in TEST_F()
[all …]
Dsynced_pref_change_registrar.cc22 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()
Dpref_model_associator.cc84 pref_service_(NULL), in PrefModelAssociator()
92 pref_service_ = NULL; in ~PrefModelAssociator()
104 const Value* user_pref_value = pref_service_->GetUserPrefValue( in InitPrefAndAssociate()
133 pref_service_->ClearPref(pref_name.c_str()); in InitPrefAndAssociate()
140 pref_service_->Set(pref_name.c_str(), *new_value); in InitPrefAndAssociate()
190 pref_service_->Set(pref_name.c_str(), *sync_value); in InitPrefAndAssociate()
223 DCHECK(pref_service_); in MergeDataAndStartSyncing()
302 pref_service_->OnIsSyncingChanged(); in MergeDataAndStartSyncing()
311 pref_service_->OnIsSyncingChanged(); in StopSyncing()
442 pref_service_->FindPreference(name.c_str()); in GetAllSyncData()
[all …]
/external/chromium/chrome/browser/prefs/
Dpref_set_observer_unittest.cc18 pref_service_.reset(new TestingPrefService); in SetUp()
19 pref_service_->RegisterStringPref(prefs::kHomePage, "http://google.com"); in SetUp()
20 pref_service_->RegisterBooleanPref(prefs::kHomePageIsNewTabPage, false); in SetUp()
21 pref_service_->RegisterStringPref(prefs::kApplicationLocale, ""); in SetUp()
26 new PrefSetObserver(pref_service_.get(), observer); in CreatePrefSetObserver()
32 scoped_ptr<TestingPrefService> pref_service_; member in PrefSetObserverTest
45 pref_service_->SetManagedPref(prefs::kHomePage, in TEST_F()
48 pref_service_->SetManagedPref(prefs::kHomePageIsNewTabPage, in TEST_F()
51 pref_service_->RemoveManagedPref(prefs::kHomePage); in TEST_F()
53 pref_service_->RemoveManagedPref(prefs::kHomePageIsNewTabPage); in TEST_F()
[all …]
Dsession_startup_pref_unittest.cc15 pref_service_.reset(new TestingPrefService); in SetUp()
16 SessionStartupPref::RegisterUserPrefs(pref_service_.get()); in SetUp()
19 scoped_ptr<TestingPrefService> pref_service_; member in SessionStartupPrefTest
26 pref_service_->SetUserPref(prefs::kURLsToRestoreOnStartup, url_pref_list); in TEST_F()
29 SessionStartupPref::GetStartupPref(pref_service_.get()); in TEST_F()
38 pref_service_->SetUserPref(prefs::kURLsToRestoreOnStartup, url_pref_list1); in TEST_F()
44 pref_service_->SetManagedPref(prefs::kURLsToRestoreOnStartup, in TEST_F()
48 SessionStartupPref::GetStartupPref(pref_service_.get()); in TEST_F()
54 SessionStartupPref::SetStartupPref(pref_service_.get(), override_test); in TEST_F()
56 result = SessionStartupPref::GetStartupPref(pref_service_.get()); in TEST_F()
Dpref_notifier_impl_unittest.cc64 pref_service_.RegisterBooleanPref(kChangedPref, true); in SetUp()
65 pref_service_.RegisterBooleanPref(kUnchangedPref, true); in SetUp()
68 TestingPrefService pref_service_; member in __anon5f9be4cd0111::PrefNotifierTest
75 MockPrefNotifier notifier(&pref_service_); in TEST_F()
81 MockPrefNotifier notifier(&pref_service_); in TEST_F()
85 Source<PrefService>(&pref_service_)); in TEST_F()
89 Source<PrefService>(&pref_service_), in TEST_F()
98 MockPrefNotifier notifier(&pref_service_); in TEST_F()
159 PrefNotifierImpl notifier(&pref_service_); in TEST_F()
163 obs1_.Expect(&pref_service_, kChangedPref, &value_true); in TEST_F()
[all …]
/external/chromium_org/chrome/browser/sync/
Dsync_prefs.cc29 : pref_service_(pref_service) { in SyncPrefs()
34 pref_sync_managed_.Init(prefs::kSyncManaged, pref_service_, in SyncPrefs()
150 pref_service_->ClearPref(prefs::kSyncLastSyncedTime); in ClearPreferences()
151 pref_service_->ClearPref(prefs::kSyncHasSetupCompleted); in ClearPreferences()
152 pref_service_->ClearPref(prefs::kSyncEncryptionBootstrapToken); in ClearPreferences()
153 pref_service_->ClearPref(prefs::kSyncKeystoreEncryptionBootstrapToken); in ClearPreferences()
161 return pref_service_->GetBoolean(prefs::kSyncHasSetupCompleted); in HasSyncSetupCompleted()
166 pref_service_->SetBoolean(prefs::kSyncHasSetupCompleted, true); in SetSyncSetupCompleted()
172 return pref_service_->GetBoolean(prefs::kSyncHasAuthError); in SyncHasAuthError()
177 pref_service_->SetBoolean(prefs::kSyncHasAuthError, error); in SetSyncAuthError()
[all …]
Dsync_prefs_unittest.cc27 SyncPrefs::RegisterProfilePrefs(pref_service_.registry()); in SetUp()
30 TestingPrefServiceSyncable pref_service_; member in browser_sync::__anon7b5392100111::SyncPrefsTest
37 SyncPrefs sync_prefs(&pref_service_); in TEST_F()
66 SyncPrefs sync_prefs(&pref_service_); in TEST_F()
88 pref_service_.SetBoolean(prefs::kSyncTypedUrls, true); in TEST_F()
100 pref_service_.SetBoolean(prefs::kSyncTypedUrls, false); in TEST_F()
101 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()
180 SyncPrefs sync_prefs(&pref_service_); in TEST_F()
[all …]
/external/chromium/chrome/browser/sync/glue/
Dpreference_model_associator_unittest.cc18 pref_service_ = profile_.GetPrefs(); in SetUp()
41 pref_service_->FindPreference(pref_name.c_str()); in SetPrefToEmpty()
50 pref_service_->Set(pref_name.c_str(), *empty_value); in SetPrefToEmpty()
54 PrefService* pref_service_; member in AbstractPreferenceMergeTest
79 pref_service_->SetString(prefs::kHomePage, local_url0_); in TEST_F()
81 pref_service_->FindPreference(prefs::kHomePage); in TEST_F()
91 pref_service_->FindPreference(prefs::kURLsToRestoreOnStartup); in TEST_F()
100 ListPrefUpdate update(pref_service_, prefs::kURLsToRestoreOnStartup); in TEST_F()
106 pref_service_->FindPreference(prefs::kURLsToRestoreOnStartup); in TEST_F()
110 pref_service_->GetList(prefs::kURLsToRestoreOnStartup); in TEST_F()
[all …]
Dpreference_change_processor.cc29 pref_service_(NULL), in PreferenceChangeProcessor()
47 DCHECK_EQ(pref_service_, Source<PrefService>(source).ptr()); in Observe()
56 pref_service_->FindPreference((*name).c_str()); in Observe()
154 pref_service_->FindPreference(pref_name); in ApplyChangesFromSyncModel()
161 pref_service_->ClearPref(pref_name); in ApplyChangesFromSyncModel()
163 pref_service_->Set(pref_name, *value); in ApplyChangesFromSyncModel()
169 pref_service_->FindPreference(name.c_str()); in ApplyChangesFromSyncModel()
198 pref_service_ = profile->GetPrefs(); in StartImpl()
199 registrar_.Init(pref_service_); in StartImpl()
206 pref_service_ = NULL; in StopImpl()
[all …]
/external/chromium_org/chrome/browser/net/
Dchrome_network_data_saving_metrics_unittest.cc39 PrefRegistrySimple* registry = pref_service_.registry(); in SetUp()
67 TestingPrefServiceSimple pref_service_; member in __anonfb5c07db0111::ChromeNetworkDataSavingMetricsTest
76 false, chrome_browser_net::UNKNOWN_TYPE, &pref_service_); in TEST_F()
78 pref_service_.GetInt64(prefs::kHttpReceivedContentLength)); in TEST_F()
80 pref_service_.GetInt64(prefs::kHttpOriginalContentLength)); in TEST_F()
85 false, chrome_browser_net::UNKNOWN_TYPE, &pref_service_); in TEST_F()
87 pref_service_.GetInt64(prefs::kHttpReceivedContentLength)); in TEST_F()
89 pref_service_.GetInt64(prefs::kHttpOriginalContentLength)); in TEST_F()
129 ListPrefUpdate update(&pref_service_, pref); in CreatePrefList()
141 ListPrefUpdate update(&pref_service_, pref); in VerifyPrefList()
[all …]
Dpref_proxy_config_tracker_impl_unittest.cc122 pref_service_.reset(new TestingPrefServiceSimple()); in SetUp()
123 Init(pref_service_.get(), pref_service_->registry()); in SetUp()
126 scoped_ptr<TestingPrefServiceSimple> pref_service_; member in __anon4c9a2cbd0111::PrefProxyConfigTrackerImplTest
137 pref_service_->SetManagedPref(prefs::kProxy, in TEST_F()
152 pref_service_->SetManagedPref(prefs::kProxy, in TEST_F()
189 pref_service_->SetManagedPref( in TEST_F()
207 pref_service_->RemoveManagedPref(prefs::kProxy); in TEST_F()
241 pref_service_->SetRecommendedPref( in TEST_F()
254 pref_service_->SetManagedPref( in TEST_F()
267 pref_service_->RemoveManagedPref(prefs::kProxy); in TEST_F()
[all …]
/external/chromium_org/chrome/browser/invalidation/
Dinvalidator_storage.cc77 : pref_service_(pref_service) { in InvalidatorStorage()
79 pref_service_->ClearPref(kInvalidatorMaxInvalidationVersions); in InvalidatorStorage()
88 pref_service_->SetString(prefs::kInvalidatorClientId, client_id); in SetInvalidatorClientId()
92 return pref_service_->GetString(prefs::kInvalidatorClientId); in GetInvalidatorClientId()
99 pref_service_->SetString(prefs::kInvalidatorInvalidationState, in SetBootstrapData()
105 pref_service_->GetString(prefs::kInvalidatorInvalidationState)); in GetBootstrapData()
114 pref_service_->Set(prefs::kInvalidatorSavedInvalidations, *value.get()); in SetSavedInvalidations()
121 pref_service_->GetList(prefs::kInvalidatorSavedInvalidations); in GetSavedInvalidations()
131 pref_service_->ClearPref(prefs::kInvalidatorSavedInvalidations); in Clear()
132 pref_service_->ClearPref(prefs::kInvalidatorClientId); in Clear()
[all …]
Dinvalidator_storage_unittest.cc21 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/base/prefs/
Dpref_change_registrar_unittest.cc131 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 …]
Dpref_notifier_impl_unittest.cc96 pref_service_.registry()->RegisterBooleanPref(kChangedPref, true); in SetUp()
97 pref_service_.registry()->RegisterBooleanPref(kUnchangedPref, true); in SetUp()
100 TestingPrefServiceSimple pref_service_; member in __anon7342e4fe0111::PrefNotifierTest
107 MockPrefNotifier notifier(&pref_service_); in TEST_F()
113 MockPrefNotifier notifier(&pref_service_); in TEST_F()
126 MockPrefNotifier notifier(&pref_service_); in TEST_F()
186 TestingPrefNotifierImpl notifier(&pref_service_); in TEST_F()
190 EXPECT_CALL(obs1_, OnPreferenceChanged(&pref_service_, kChangedPref)); in TEST_F()
199 EXPECT_CALL(obs1_, OnPreferenceChanged(&pref_service_, kChangedPref)); in TEST_F()
200 EXPECT_CALL(obs2_, OnPreferenceChanged(&pref_service_, kChangedPref)); in TEST_F()
[all …]
Dpref_notifier_impl.cc12 : 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/chrome/browser/extensions/
Dtest_extension_prefs.cc51 TestExtensionPrefs::TestExtensionPrefs() : pref_service_(NULL) { in TestExtensionPrefs()
66 if (pref_service_.get()) { in RecreateExtensionPrefs()
71 pref_service_->SavePersistentPrefs(); in RecreateExtensionPrefs()
89 pref_service_.reset(builder.Create()); in RecreateExtensionPrefs()
90 ExtensionPrefs::RegisterUserPrefs(pref_service_.get()); in RecreateExtensionPrefs()
92 prefs_.reset(new MockExtensionPrefs(pref_service_.get(), in RecreateExtensionPrefs()
129 return pref_service_->CreateIncognitoPrefService( in CreateIncognitoPrefService()
/external/chromium/chrome/browser/net/
Dpref_proxy_config_service_unittest.cc111 pref_service_.reset(new TestingPrefService()); in SetUp()
112 Init(pref_service_.get()); in SetUp()
115 scoped_ptr<TestingPrefService> pref_service_; member in __anonadba924a0111::PrefProxyConfigServiceTest
126 pref_service_->SetManagedPref( in TEST_F()
141 pref_service_->SetManagedPref(prefs::kProxy, in TEST_F()
178 pref_service_->SetManagedPref( in TEST_F()
196 pref_service_->RemoveManagedPref(prefs::kProxy); in TEST_F()
230 pref_service_->SetRecommendedPref( in TEST_F()
243 pref_service_->SetManagedPref( in TEST_F()
256 pref_service_->RemoveManagedPref(prefs::kProxy); in TEST_F()
[all …]
/external/chromium_org/chrome/browser/bookmarks/
Dbookmark_expanded_state_tracker.cc18 pref_service_(pref_service) { in BookmarkExpandedStateTracker()
35 if (!pref_service_) in GetExpandedNodes()
39 pref_service_->GetList(prefs::kBookmarkEditorExpandedNodes); in GetExpandedNodes()
97 if (!pref_service_) in UpdatePrefs()
106 pref_service_->Set(prefs::kBookmarkEditorExpandedNodes, values); in UpdatePrefs()
/external/chromium_org/chrome/browser/extensions/
Dtest_extension_prefs.cc76 return pref_service_.get(); in pref_service()
93 if (pref_service_) { in RecreateExtensionPrefs()
96 pref_service_->CommitPendingWrite(); in RecreateExtensionPrefs()
111 pref_service_ = factory.CreateSyncable(pref_registry_.get()).Pass(); in RecreateExtensionPrefs()
114 pref_service_.get(), in RecreateExtensionPrefs()
176 return pref_service_->CreateIncognitoPrefService( in CreateIncognitoPrefService()
/external/chromium_org/chrome/browser/themes/
Dtheme_service_aurax11.cc33 PrefService* const pref_service_; member in __anon103999230111::NativeThemeX11
41 pref_service_(pref_service) {} in NativeThemeX11()
47 pref_service_->SetBoolean(prefs::kUsesSystemTheme, true); in StartUsingTheme()
54 pref_service_->SetBoolean(prefs::kUsesSystemTheme, false); in StopUsingTheme()
/external/chromium_org/chrome/browser/chromeos/
Dproxy_config_service_impl_unittest.cc223 PrefProxyConfigTrackerImpl::RegisterPrefs(pref_service_.registry()); in SetUp()
228 &pref_service_)); in SetUp()
326 TestingPrefServiceSimple pref_service_; member in chromeos::ProxyConfigServiceImplTest
399 pref_service_.SetManagedPref(prefs::kProxy, managed_config.DeepCopy()); in TEST_F()
400 pref_service_.SetRecommendedPref(prefs::kProxy, in TEST_F()
411 pref_service_.RemoveManagedPref(prefs::kProxy); in TEST_F()
427 pref_service_.SetManagedPref(prefs::kProxy, managed_config.DeepCopy()); in TEST_F()
436 pref_service_.RemoveManagedPref(prefs::kProxy); in TEST_F()
444 pref_service_.RemoveRecommendedPref(prefs::kProxy); in TEST_F()
/external/chromium/chrome/browser/ui/webui/
Dshown_sections_handler.cc61 : pref_service_(pref_service) { in ShownSectionsHandler()
79 int sections = pref_service_->GetInteger(prefs::kNTPShownSections); in Observe()
88 int sections = GetShownSections(pref_service_); in HandleGetShownSections()
97 int old_mode = pref_service_->GetInteger(prefs::kNTPShownSections); in HandleSetShownSections()
101 pref_service_->SetInteger(prefs::kNTPShownSections, mode); in HandleSetShownSections()

1234