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

1 2 3 4

  /external/chromium/chrome/browser/prefs/
session_startup_pref_unittest.cc 15 pref_service_.reset(new TestingPrefService);
16 SessionStartupPref::RegisterUserPrefs(pref_service_.get());
19 scoped_ptr<TestingPrefService> pref_service_; member in class:SessionStartupPrefTest
26 pref_service_->SetUserPref(prefs::kURLsToRestoreOnStartup, url_pref_list);
29 SessionStartupPref::GetStartupPref(pref_service_.get());
38 pref_service_->SetUserPref(prefs::kURLsToRestoreOnStartup, url_pref_list1);
44 pref_service_->SetManagedPref(prefs::kURLsToRestoreOnStartup,
48 SessionStartupPref::GetStartupPref(pref_service_.get());
54 SessionStartupPref::SetStartupPref(pref_service_.get(), override_test);
56 result = SessionStartupPref::GetStartupPref(pref_service_.get())
    [all...]
pref_set_observer_unittest.cc 18 pref_service_.reset(new TestingPrefService);
19 pref_service_->RegisterStringPref(prefs::kHomePage, "http://google.com");
20 pref_service_->RegisterBooleanPref(prefs::kHomePageIsNewTabPage, false);
21 pref_service_->RegisterStringPref(prefs::kApplicationLocale, "");
26 new PrefSetObserver(pref_service_.get(), observer);
32 scoped_ptr<TestingPrefService> pref_service_; member in class:PrefSetObserverTest
45 pref_service_->SetManagedPref(prefs::kHomePage,
48 pref_service_->SetManagedPref(prefs::kHomePageIsNewTabPage,
51 pref_service_->RemoveManagedPref(prefs::kHomePage);
53 pref_service_->RemoveManagedPref(prefs::kHomePageIsNewTabPage)
    [all...]
pref_notifier_impl_unittest.cc 64 pref_service_.RegisterBooleanPref(kChangedPref, true);
65 pref_service_.RegisterBooleanPref(kUnchangedPref, true);
68 TestingPrefService pref_service_; member in class:__anon2048::PrefNotifierTest
75 MockPrefNotifier notifier(&pref_service_);
81 MockPrefNotifier notifier(&pref_service_);
85 Source<PrefService>(&pref_service_));
89 Source<PrefService>(&pref_service_),
98 MockPrefNotifier notifier(&pref_service_);
159 PrefNotifierImpl notifier(&pref_service_);
163 obs1_.Expect(&pref_service_, kChangedPref, &value_true)
    [all...]
pref_notifier_impl.cc 13 : pref_service_(service) {
82 Source<PrefService>(pref_service_),
90 if (!pref_service_->FindPreference(path.c_str()))
102 Source<PrefService>(pref_service_),
pref_set_observer.cc 12 : pref_service_(pref_service),
20 if (!prefs_.count(pref) && pref_service_->FindPreference(pref.c_str())) {
38 pref_service_->FindPreference(i->c_str());
pref_notifier_impl.h 51 PrefService* pref_service_; member in class:PrefNotifierImpl
  /external/chromium_org/chrome/browser/prefs/
session_startup_pref_unittest.cc 20 pref_service_.reset(new TestingPrefServiceSyncable);
44 return pref_service_->registry();
47 scoped_ptr<TestingPrefServiceSyncable> pref_service_; member in class:SessionStartupPrefTest
54 pref_service_->SetUserPref(prefs::kURLsToRestoreOnStartup, url_pref_list);
57 SessionStartupPref::GetStartupPref(pref_service_.get());
66 pref_service_->SetUserPref(prefs::kURLsToRestoreOnStartup, url_pref_list1);
72 pref_service_->SetManagedPref(prefs::kURLsToRestoreOnStartup,
76 SessionStartupPref::GetStartupPref(pref_service_.get());
82 SessionStartupPref::SetStartupPref(pref_service_.get(), override_test);
84 result = SessionStartupPref::GetStartupPref(pref_service_.get())
    [all...]
synced_pref_change_registrar.cc 22 pref_service_ = pref_service;
38 pref_service_->AddSyncedPrefObserver(path, this);
43 pref_service_->RemoveSyncedPrefObserver(path, this);
49 pref_service_->RemoveSyncedPrefObserver(iter->first, this);
60 if (pref_service_->IsManagedPreference(path.c_str()))
pref_model_associator_unittest.cc 16 pref_service_ = profile_.GetPrefs();
39 pref_service_->FindPreference(pref_name.c_str());
48 pref_service_->Set(pref_name.c_str(), *empty_value);
52 PrefService* pref_service_; member in class:AbstractPreferenceMergeTest
77 pref_service_->SetString(prefs::kHomePage, local_url0_);
79 pref_service_->FindPreference(prefs::kHomePage);
91 pref_service_->FindPreference(prefs::kURLsToRestoreOnStartup);
102 ListPrefUpdate update(pref_service_, prefs::kURLsToRestoreOnStartup);
108 pref_service_->FindPreference(prefs::kURLsToRestoreOnStartup);
114 pref_service_->GetList(prefs::kURLsToRestoreOnStartup)
    [all...]
  /external/chromium_org/chrome/browser/invalidation/
invalidator_storage.cc 77 : pref_service_(pref_service) {
79 pref_service_->ClearPref(kInvalidatorMaxInvalidationVersions);
88 pref_service_->SetString(prefs::kInvalidatorClientId, client_id);
92 return pref_service_->GetString(prefs::kInvalidatorClientId);
99 pref_service_->SetString(prefs::kInvalidatorInvalidationState,
105 pref_service_->GetString(prefs::kInvalidatorInvalidationState));
114 pref_service_->Set(prefs::kInvalidatorSavedInvalidations, *value.get());
121 pref_service_->GetList(prefs::kInvalidatorSavedInvalidations);
131 pref_service_->ClearPref(prefs::kInvalidatorSavedInvalidations);
132 pref_service_->ClearPref(prefs::kInvalidatorClientId)
    [all...]
invalidator_storage_unittest.cc 21 InvalidatorStorage::RegisterProfilePrefs(pref_service_.registry());
25 TestingPrefServiceSyncable pref_service_; member in class:invalidation::InvalidatorStorageTest
31 InvalidatorStorage storage(&pref_service_);
48 InvalidatorStorage storage(&pref_service_);
56 InvalidatorStorage storage(&pref_service_);
65 InvalidatorStorage storage(&pref_service_);
76 InvalidatorStorage storage(&pref_service_);
  /external/chromium_org/chrome/browser/themes/
theme_service_aurax11.cc 33 PrefService* const pref_service_; member in class:__anon5825::NativeThemeX11
41 pref_service_(pref_service) {}
47 pref_service_->SetBoolean(prefs::kUsesSystemTheme, true);
54 pref_service_->SetBoolean(prefs::kUsesSystemTheme, false);
  /external/chromium/chrome/browser/extensions/
test_extension_prefs.cc 51 TestExtensionPrefs::TestExtensionPrefs() : pref_service_(NULL) {
66 if (pref_service_.get()) {
71 pref_service_->SavePersistentPrefs();
89 pref_service_.reset(builder.Create());
90 ExtensionPrefs::RegisterUserPrefs(pref_service_.get());
92 prefs_.reset(new MockExtensionPrefs(pref_service_.get(),
129 return pref_service_->CreateIncognitoPrefService(
test_extension_prefs.h 29 PrefService* pref_service() { return pref_service_.get(); }
55 scoped_ptr<PrefService> pref_service_; member in class:TestExtensionPrefs
  /external/chromium_org/chrome/browser/bookmarks/
bookmark_expanded_state_tracker.cc 18 pref_service_(pref_service) {
35 if (!pref_service_)
39 pref_service_->GetList(prefs::kBookmarkEditorExpandedNodes);
97 if (!pref_service_)
106 pref_service_->Set(prefs::kBookmarkEditorExpandedNodes, values);
  /external/chromium_org/chrome/browser/net/
chrome_network_data_saving_metrics_unittest.cc 39 PrefRegistrySimple* registry = pref_service_.registry();
67 TestingPrefServiceSimple pref_service_; member in class:__anon5266::ChromeNetworkDataSavingMetricsTest
76 false, chrome_browser_net::UNKNOWN_TYPE, &pref_service_);
78 pref_service_.GetInt64(prefs::kHttpReceivedContentLength));
80 pref_service_.GetInt64(prefs::kHttpOriginalContentLength));
85 false, chrome_browser_net::UNKNOWN_TYPE, &pref_service_);
87 pref_service_.GetInt64(prefs::kHttpReceivedContentLength));
89 pref_service_.GetInt64(prefs::kHttpOriginalContentLength));
129 ListPrefUpdate update(&pref_service_, pref);
141 ListPrefUpdate update(&pref_service_, pref)
    [all...]
  /external/chromium/chrome/browser/sync/glue/
preference_model_associator_unittest.cc 18 pref_service_ = profile_.GetPrefs();
41 pref_service_->FindPreference(pref_name.c_str());
50 pref_service_->Set(pref_name.c_str(), *empty_value);
54 PrefService* pref_service_; member in class:AbstractPreferenceMergeTest
79 pref_service_->SetString(prefs::kHomePage, local_url0_);
81 pref_service_->FindPreference(prefs::kHomePage);
91 pref_service_->FindPreference(prefs::kURLsToRestoreOnStartup);
100 ListPrefUpdate update(pref_service_, prefs::kURLsToRestoreOnStartup);
106 pref_service_->FindPreference(prefs::kURLsToRestoreOnStartup);
110 pref_service_->GetList(prefs::kURLsToRestoreOnStartup)
    [all...]
preference_change_processor.cc 29 pref_service_(NULL),
47 DCHECK_EQ(pref_service_, Source<PrefService>(source).ptr());
56 pref_service_->FindPreference((*name).c_str());
154 pref_service_->FindPreference(pref_name);
161 pref_service_->ClearPref(pref_name);
163 pref_service_->Set(pref_name, *value);
169 pref_service_->FindPreference(name.c_str());
198 pref_service_ = profile->GetPrefs();
199 registrar_.Init(pref_service_);
206 pref_service_ = NULL
    [all...]
preference_change_processor.h 56 PrefService* pref_service_; member in class:browser_sync::PreferenceChangeProcessor
  /external/chromium_org/chrome/browser/sync/
sync_prefs.cc 29 : pref_service_(pref_service) {
34 pref_sync_managed_.Init(prefs::kSyncManaged, pref_service_,
150 pref_service_->ClearPref(prefs::kSyncLastSyncedTime);
151 pref_service_->ClearPref(prefs::kSyncHasSetupCompleted);
152 pref_service_->ClearPref(prefs::kSyncEncryptionBootstrapToken);
153 pref_service_->ClearPref(prefs::kSyncKeystoreEncryptionBootstrapToken);
161 return pref_service_->GetBoolean(prefs::kSyncHasSetupCompleted);
166 pref_service_->SetBoolean(prefs::kSyncHasSetupCompleted, true);
172 return pref_service_->GetBoolean(prefs::kSyncHasAuthError);
177 pref_service_->SetBoolean(prefs::kSyncHasAuthError, error)
    [all...]
sync_prefs_unittest.cc 27 SyncPrefs::RegisterProfilePrefs(pref_service_.registry());
30 TestingPrefServiceSyncable pref_service_; member in class:browser_sync::__anon5731::SyncPrefsTest
37 SyncPrefs sync_prefs(&pref_service_);
66 SyncPrefs sync_prefs(&pref_service_);
88 pref_service_.SetBoolean(prefs::kSyncTypedUrls, true);
100 pref_service_.SetBoolean(prefs::kSyncTypedUrls, false);
101 pref_service_.SetBoolean(prefs::kSyncSessions, true);
109 SyncPrefs sync_prefs(&pref_service_);
128 SyncPrefs sync_prefs(&pref_service_);
180 SyncPrefs sync_prefs(&pref_service_);
    [all...]
  /external/chromium_org/base/prefs/
pref_notifier_impl.cc 12 : pref_service_(NULL) {
16 : pref_service_(service) {
101 if (!pref_service_->FindPreference(path.c_str()))
111 OnPreferenceChanged(pref_service_, path));
115 DCHECK(pref_service_ == NULL);
116 pref_service_ = pref_service;
pref_change_registrar_unittest.cc 131 pref_service_.reset(new TestingPrefServiceSimple);
132 PrefRegistrySimple* registry = pref_service_->registry();
141 pref_set->Init(pref_service_.get());
149 scoped_ptr<TestingPrefServiceSimple> pref_service_; member in class:base::ObserveSetOfPreferencesTest
162 pref_service_->SetManagedPref(kHomePage,
165 pref_service_->SetManagedPref(kHomePageIsNewTabPage,
168 pref_service_->RemoveManagedPref(kHomePage);
170 pref_service_->RemoveManagedPref(kHomePageIsNewTabPage);
182 pref_set.Init(pref_service_.get());
187 pref_service_->SetUserPref(kHomePage, new StringValue("http://crbug.com"))
    [all...]
pref_notifier_impl_unittest.cc 96 pref_service_.registry()->RegisterBooleanPref(kChangedPref, true);
97 pref_service_.registry()->RegisterBooleanPref(kUnchangedPref, true);
100 TestingPrefServiceSimple pref_service_; member in class:__anon3593::PrefNotifierTest
107 MockPrefNotifier notifier(&pref_service_);
113 MockPrefNotifier notifier(&pref_service_);
126 MockPrefNotifier notifier(&pref_service_);
186 TestingPrefNotifierImpl notifier(&pref_service_);
190 EXPECT_CALL(obs1_, OnPreferenceChanged(&pref_service_, kChangedPref));
199 EXPECT_CALL(obs1_, OnPreferenceChanged(&pref_service_, kChangedPref));
200 EXPECT_CALL(obs2_, OnPreferenceChanged(&pref_service_, kChangedPref))
    [all...]
  /external/chromium_org/chrome/browser/extensions/
test_extension_prefs.cc 76 return pref_service_.get();
93 if (pref_service_) {
96 pref_service_->CommitPendingWrite();
111 pref_service_ = factory.CreateSyncable(pref_registry_.get()).Pass();
114 pref_service_.get(),
176 return pref_service_->CreateIncognitoPrefService(

Completed in 516 milliseconds

1 2 3 4