/external/chromium/chrome/browser/prefs/ |
H A D | scoped_user_pref_update_unittest.cc | 21 prefs_.RegisterDictionaryPref(kPref); 22 registrar_.Init(&prefs_); 30 TestingPrefService prefs_; member in class:ScopedUserPrefUpdateTest 46 DictionaryPrefUpdate update(&prefs_, kPref); 56 const DictionaryValue* current_value = prefs_.GetDictionary(kPref); 61 observer_.Expect(&prefs_, kPref, &expected_dictionary); 65 const DictionaryValue* current_value = prefs_.GetDictionary(kPref); 71 const DictionaryValue* old_value = prefs_.GetDictionary(kPref); 74 DictionaryPrefUpdate update(&prefs_, kPref); 76 const DictionaryValue* new_value = prefs_ [all...] |
H A D | pref_value_map.cc | 19 const Map::const_iterator entry = prefs_.find(key); 20 if (entry != prefs_.end()) { 30 const Map::const_iterator entry = prefs_.find(key); 31 if (entry != prefs_.end()) { 43 const Map::iterator entry = prefs_.find(key); 44 if (entry != prefs_.end()) { 50 prefs_[key] = value_ptr.release(); 57 const Map::iterator entry = prefs_.find(key); 58 if (entry != prefs_.end()) { 60 prefs_ [all...] |
H A D | value_map_pref_store.cc | 18 return prefs_.GetValue(key, value) ? READ_OK : READ_NO_VALUE; 30 if (prefs_.SetValue(key, value)) 35 if (prefs_.RemoveValue(key)) 44 return prefs_.begin(); 48 return prefs_.end(); 52 return prefs_.begin(); 56 return prefs_.end();
|
H A D | pref_set_observer.cc | 20 if (!prefs_.count(pref) && pref_service_->FindPreference(pref.c_str())) { 21 prefs_.insert(pref); 27 if (prefs_.erase(pref)) 32 return prefs_.count(pref) > 0; 36 for (PrefSet::const_iterator i(prefs_.begin()); i != prefs_.end(); ++i) {
|
H A D | testing_pref_store.cc | 18 return prefs_.GetValue(key, value) ? READ_OK : READ_NO_VALUE; 23 return prefs_.GetValue(key, value) ? READ_OK : READ_NO_VALUE; 39 if (prefs_.SetValue(key, value)) 44 prefs_.SetValue(key, value); 48 if (prefs_.RemoveValue(key)) 57 prefs_.Clear(); 99 if (!prefs_.GetValue(key, &stored_value) || !stored_value) 107 if (!prefs_.GetValue(key, &stored_value) || !stored_value) 115 if (!prefs_.GetValue(key, &stored_value) || !stored_value)
|
H A D | pref_member.cc | 16 prefs_(NULL), 31 prefs_ = prefs; 36 prefs_->AddPrefObserver(pref_name, this); 40 if (prefs_ && !pref_name_.empty()) { 41 prefs_->RemovePrefObserver(pref_name_.c_str(), this); 42 prefs_ = NULL; 67 prefs_->FindPreference(pref_name_.c_str());
|
H A D | pref_service_unittest.cc | 357 TestingPrefService prefs_; member in class:PrefServiceSetValueTest 367 prefs_.RegisterStringPref(kName, default_string); 370 registrar.Init(&prefs_); 374 observer_.Expect(&prefs_, kName, &default_value); 375 prefs_.Set(kName, default_value); 379 prefs_.Set(kName, default_value); 383 observer_.Expect(&prefs_, kName, &new_value); 384 prefs_.Set(kName, new_value); 389 prefs_.RegisterDictionaryPref(kName); 391 registrar.Init(&prefs_); [all...] |
/external/chromium/chrome/browser/ |
H A D | about_flags_unittest.cc | 89 prefs_.RegisterListPref(prefs::kEnabledLabsExperiments); 91 prefs_.RegisterBooleanPref(prefs::kLabsMediaplayerEnabled, false); 92 prefs_.RegisterBooleanPref(prefs::kLabsAdvancedFilesystemEnabled, false); 93 prefs_.RegisterBooleanPref(prefs::kUseVerticalTabs, false); 114 TestingPrefService prefs_; member in class:about_flags::AboutFlagsTest 119 SetExperimentEnabled(&prefs_, kFlags1, true); 125 SetExperimentEnabled(&prefs_, kFlags1, true); 126 SetExperimentEnabled(&prefs_, kFlags2, true); 128 const ListValue* experiments_list = prefs_.GetList( 143 SetExperimentEnabled(&prefs_, kFlags [all...] |
H A D | plugin_data_remover_helper.cc | 21 : pref_name_(pref_name), prefs_(prefs) {} 33 prefs_ = NULL; 54 if (prefs_) 55 prefs_->SetBoolean(pref_name_.c_str(), value); 60 PrefService* prefs_; member in class:PluginDataRemoverHelper::Internal
|
H A D | background_contents_service.cc | 125 : prefs_(NULL) { 130 prefs_ = profile->GetPrefs(); 331 if (!prefs_) 334 prefs_->GetDictionary(prefs::kRegisteredBackgroundContents); 373 if (!prefs_) 376 prefs_->GetDictionary(prefs::kRegisteredBackgroundContents); 471 if (!prefs_) 478 DictionaryPrefUpdate update(prefs_, prefs::kRegisteredBackgroundContents); 490 prefs_->ScheduleSavePersistentPrefs(); 495 if (!prefs_) [all...] |
/external/chromium/chrome/browser/extensions/ |
H A D | test_extension_prefs.h | 27 ExtensionPrefs* prefs() { return prefs_.get(); } 28 const ExtensionPrefs& const_prefs() const { return *prefs_.get(); } 56 scoped_ptr<ExtensionPrefs> prefs_; member in class:TestExtensionPrefs
|
H A D | apps_promo.cc | 105 : prefs_(prefs) { 185 prefs_->SetString(prefs::kNTPWebStorePromoLastId, promo_id); 186 ShownSectionsHandler::SetShownSection(prefs_, APPS); 196 ShownSectionsHandler::SetShownSection(prefs_, MENU_APPS); 197 ShownSectionsHandler::SetShownSection(prefs_, THUMB); 203 return prefs_->GetString(prefs::kNTPWebStorePromoLastId); 207 prefs_->SetString(prefs::kNTPWebStorePromoLastId, id); 211 return prefs_->GetInteger(prefs::kAppsPromoCounter); 215 prefs_->SetInteger(prefs::kAppsPromoCounter, val); 216 prefs_ [all...] |
H A D | external_pref_extension_loader.cc | 84 prefs_.reset(prefs.release()); 89 if (!prefs_->empty()) 111 prefs_.reset(testing_prefs_->DeepCopy());
|
H A D | external_extension_loader.cc | 42 owner_->SetPrefs(prefs_.release());
|
H A D | external_extension_loader.h | 42 // in prefs_ and then call LoadFinished. 65 scoped_ptr<DictionaryValue> prefs_; member in class:ExternalExtensionLoader
|
H A D | external_extension_provider_impl.cc | 42 prefs_(NULL), 65 prefs_.reset(prefs); 69 for (DictionaryValue::key_iterator i = prefs_->begin_keys(); 70 i != prefs_->end_keys(); ++i) { 80 if (!prefs_->GetDictionaryWithoutPathExpansion(extension_id, &extension)) { 181 CHECK(prefs_.get()); 183 return prefs_->HasKey(id); 190 CHECK(prefs_.get()); 193 if (!prefs_->GetDictionary(id, &extension))
|
H A D | extension_prefs_unittest.cc | 92 prefs_.RecreateExtensionPrefs(); 98 ExtensionPrefs* prefs() { return prefs_.prefs(); } 104 TestExtensionPrefs prefs_; member in class:ExtensionPrefsTest 118 extension_id_ = prefs_.AddExtensionAndReturnId("last_ping_day"); 145 list_.push_back(prefs_.AddExtensionAndReturnId("1")); 146 list_.push_back(prefs_.AddExtensionAndReturnId("2")); 147 list_.push_back(prefs_.AddExtensionAndReturnId("3")); 171 extension = prefs_.AddExtension("test"); 188 extension = prefs_.AddExtension("test"); 205 extension_id_ = prefs_ [all...] |
/external/chromium/chrome/browser/translate/ |
H A D | translate_prefs.cc | 25 : prefs_(user_prefs) { 57 const DictionaryValue* dict = prefs_->GetDictionary(kPrefTranslateWhitelists); 70 DictionaryPrefUpdate update(prefs_, kPrefTranslateWhitelists); 77 prefs_->ScheduleSavePersistentPrefs(); 83 DictionaryPrefUpdate update(prefs_, kPrefTranslateWhitelists); 90 prefs_->ScheduleSavePersistentPrefs(); 95 prefs_->GetDictionary(kPrefTranslateDeniedCount); 102 DictionaryPrefUpdate update(prefs_, kPrefTranslateDeniedCount); 111 DictionaryPrefUpdate update(prefs_, kPrefTranslateDeniedCount); 117 prefs_ [all...] |
H A D | translate_infobar_delegate.cc | 103 prefs_.ResetTranslationDeniedCount(original_language_code); 104 prefs_.IncrementTranslationAcceptedCount(original_language_code); 124 prefs_.ResetTranslationAcceptedCount(original_language_code); 125 prefs_.IncrementTranslationDeniedCount(original_language_code); 139 return prefs_.IsLanguageBlacklisted(GetOriginalLanguageCode()); 144 if (prefs_.IsLanguageBlacklisted(original_lang)) { 145 prefs_.RemoveLanguageFromBlacklist(original_lang); 147 prefs_.BlacklistLanguage(original_lang); 154 return !host.empty() && prefs_.IsSiteBlacklisted(host); 162 if (prefs_ [all...] |
/external/chromium/chrome/browser/web_resource/ |
H A D | promo_resource_service.cc | 160 prefs_->ClearPref(prefs::kNTPPromoResourceCacheUpdate); 166 double promo_start = prefs_->GetDouble(prefs::kNTPPromoStart); 167 double promo_end = prefs_->GetDouble(prefs::kNTPPromoEnd); 192 if (prefs_->HasPrefPath(prefs::kNTPPromoStart) && 193 prefs_->HasPrefPath(prefs::kNTPPromoEnd)) { 194 old_promo_start = prefs_->GetDouble(prefs::kNTPPromoStart); 195 old_promo_end = prefs_->GetDouble(prefs::kNTPPromoEnd); 227 prefs_->SetInteger(prefs::kNTPPromoBuild, promo_build_type); 228 prefs_->SetInteger(prefs::kNTPPromoGroupTimeSlice, 232 prefs_ [all...] |
/external/chromium/chrome/browser/policy/ |
H A D | cloud_policy_subsystem.cc | 54 : prefs_(NULL) { 80 DCHECK(!prefs_); 98 DCHECK(!prefs_); 99 prefs_ = prefs; 104 policy_refresh_rate_.Init(prefs::kPolicyRefreshRate, prefs_, this); 114 prefs_ = NULL; 167 prefs_ == Source<PrefService>(source).ptr()) {
|
H A D | configuration_policy_pref_store.cc | 66 // Remove the preferences found in the map from |prefs_|. Returns true if any 94 // Make sure that the |path| if present in |prefs_|. If not, set it to 101 // map entries from |prefs_|. 106 // respective values in |prefs_|. 124 PrefValueMap prefs_; member in class:policy::ConfigurationPolicyPrefKeeper 297 if (!prefs_.GetValue(key, &stored_value)) 312 prefs_.GetDifferingKeys(&other->prefs_, differing_prefs); 346 if (prefs_.RemoveValue(map[i].preference_path)) 363 prefs_ [all...] |
H A D | configuration_policy_provider_mac_unittest.cc | 134 prefs_ = new MockPreferences; 139 MockPreferences* prefs_; member in class:policy::ConfigurationPolicyProviderMacTest 145 ConfigurationPolicyPrefStore::GetChromePolicyDefinitionList(), prefs_); local 155 prefs_->AddTestItem(name, invalid_data.get(), true); 157 // Create the provider and have it read |prefs_|. 159 ConfigurationPolicyPrefStore::GetChromePolicyDefinitionList(), prefs_); local 170 prefs_->AddTestItem(name, test_value.get(), false); 172 // Create the provider and have it read |prefs_|. 174 ConfigurationPolicyPrefStore::GetChromePolicyDefinitionList(), prefs_); local 185 prefs_ 189 ConfigurationPolicyPrefStore::GetChromePolicyDefinitionList(), prefs_); local [all...] |
/external/chromium/chrome/common/ |
H A D | json_pref_store.cc | 131 prefs_(new DictionaryValue()), 143 if (prefs_->Get(key, &tmp)) { 160 return prefs_->Get(key, result) ? READ_OK : READ_NO_VALUE; 167 prefs_->Get(key, &old_value); 169 prefs_->Set(key, new_value.release()); 178 prefs_->Get(key, &old_value); 180 prefs_->Set(key, new_value.release()); 184 if (prefs_->Remove(key, NULL)) { 206 prefs_.reset(static_cast<DictionaryValue*>(value.release())); 303 scoped_ptr<DictionaryValue> copy(prefs_ [all...] |
/external/chromium/chrome/browser/sync/ |
H A D | profile_sync_service_preference_unittest.cc | 56 prefs_ = profile_->GetTestingPrefService(); 58 prefs_->RegisterStringPref(not_synced_preference_name_.c_str(), 105 prefs_->FindPreference(name.c_str()); 179 TestingPrefService* prefs_; member in class:ProfileSyncServicePreferenceTest 218 prefs_->SetString(prefs::kHomePage, example_url0_); 224 prefs_->FindPreference(prefs::kHomePage); 243 prefs_->FindPreference(prefs::kHomePage); 255 prefs_->SetString(prefs::kHomePage, example_url0_); 257 ListPrefUpdate update(prefs_, prefs::kURLsToRestoreOnStartup); 276 prefs_ [all...] |