Home
last modified time | relevance | path

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

/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 __anon8b1064e90111::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 …]
Dpref_notifier_impl.cc13 : pref_service_(service) { in PrefNotifierImpl()
82 Source<PrefService>(pref_service_), in OnInitializationCompleted()
90 if (!pref_service_->FindPreference(path.c_str())) in FireObservers()
102 Source<PrefService>(pref_service_), in FireObservers()
Dpref_set_observer.cc12 : pref_service_(pref_service), in PrefSetObserver()
20 if (!prefs_.count(pref) && pref_service_->FindPreference(pref.c_str())) { in AddPref()
38 pref_service_->FindPreference(i->c_str()); in IsManaged()
Dpref_notifier_impl.h51 PrefService* pref_service_; variable
Dpref_set_observer.h54 PrefService* pref_service_; variable
Dpref_service.h103 return pref_service_->pref_value_store_.get(); in pref_value_store()
111 const PrefService* pref_service_; variable
Dpref_service.cc654 pref_service_(service) { in Preference()
664 DCHECK(pref_service_->FindPreference(name_.c_str())) << in GetValue()
/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 …]
Dpreference_change_processor.h56 PrefService* pref_service_; variable
/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()
Dtest_extension_prefs.h29 PrefService* pref_service() { return pref_service_.get(); } in pref_service()
55 scoped_ptr<PrefService> pref_service_; variable
/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 __anonf74f83e60111::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 …]
Dpref_proxy_config_service.cc18 : pref_service_(pref_service) { in PrefProxyConfigTracker()
21 PrefSetObserver::CreateProxyPrefSetObserver(pref_service_, this)); in PrefProxyConfigTracker()
25 DCHECK(pref_service_ == NULL); in ~PrefProxyConfigTracker()
40 pref_service_ = NULL; in DetachFromPrefService()
60 Source<PrefService>(source).ptr() == pref_service_) { in Observe()
94 pref_service_->FindPreference(prefs::kProxy); in ReadPrefConfig()
95 const DictionaryValue* dict = pref_service_->GetDictionary(prefs::kProxy); in ReadPrefConfig()
Dpref_proxy_config_service.h99 PrefService* pref_service_; variable
/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()
Dshown_sections_handler.h73 PrefService* pref_service_;
/external/chromium/chrome/browser/chromeos/status/
Dinput_method_menu.cc133 pref_service_(pref_service), in InputMethodMenu()
140 if (pref_service_ && (screen_mode_ == StatusAreaHost::kBrowserMode)) { in InputMethodMenu()
388 if (pref_service_) { // make sure we're not in unit tests. in PreferenceUpdateNeeded()
392 pref_service_->ScheduleSavePersistentPrefs(); in PreferenceUpdateNeeded()
430 if (pref_service_ && (screen_mode_ == StatusAreaHost::kBrowserMode)) { in FirstObserverIsAdded()
Dinput_method_menu.h169 PrefService* pref_service_; variable
/external/chromium/chrome/browser/ui/cocoa/extensions/
Dextension_action_context_menu.mm74 : menu_(menu), pref_service_(service) {
75 registrar_.Init(pref_service_);
91 PrefService* pref_service_;