/external/chromium_org/chrome/browser/extensions/api/font_settings/ |
H A D | font_settings_api.cc | 13 #include "base/prefs/pref_service.h" 56 // |script| is NULL, uses prefs::kWebKitCommonScript. 61 script = prefs::kWebKitCommonScript; 82 // Registers |obs| to observe per-script font prefs under the path |map_name|. 87 for (size_t i = 0; i < prefs::kWebKitScriptsForFontFamilyMapsLength; ++i) { 88 const char* script = prefs::kWebKitScriptsForFontFamilyMaps[i]; 100 AddPrefToObserve(prefs::kWebKitDefaultFixedFontSize, 103 AddPrefToObserve(prefs::kWebKitDefaultFontSize, 106 AddPrefToObserve(prefs::kWebKitMinimumFontSize, 114 prefs 253 PrefService* prefs = GetProfile()->GetPrefs(); local 358 PrefService* prefs = GetProfile()->GetPrefs(); local [all...] |
/external/chromium_org/chrome/browser/extensions/api/omnibox/ |
H A D | omnibox_api.cc | 56 ExtensionPrefs* prefs = ExtensionPrefs::Get(profile); local 60 if (prefs && prefs->ReadPrefAsDictionary(extension_id, 75 ExtensionPrefs* prefs = ExtensionPrefs::Get(profile); local 76 if (!prefs) 83 prefs->UpdateExtensionPref(extension_id,
|
/external/chromium_org/chrome/browser/extensions/ |
H A D | blacklist.cc | 13 #include "base/prefs/pref_service.h" 160 Blacklist::Blacklist(ExtensionPrefs* prefs) { argument 170 // Clear out the old prefs-backed blacklist, stored as empty extension entries 174 std::set<std::string> blacklisted = prefs->GetBlacklistedExtensions(); 177 if (!prefs->GetInstalledExtensionInfo(*it)) 178 prefs->DeleteExtensionPrefs(*it);
|
H A D | content_verifier_browsertest.cc | 203 ExtensionPrefs* prefs = ExtensionPrefs::Get(profile()); local 204 int reasons = prefs->GetDisableReasons(id_);
|
H A D | extension_toolbar_model_unittest.cc | 709 ExtensionPrefs* prefs = ExtensionPrefs::Get(profile()); local 713 prefs, browser_action_a()->id())); 715 prefs, browser_action_b()->id())); 717 prefs, browser_action_c()->id())); 721 prefs, browser_action_b()->id(), false); 723 prefs, browser_action_b()->id())); 732 prefs, browser_action_b()->id(), true); 734 prefs, browser_action_b()->id())); 766 ExtensionPrefs* prefs = ExtensionPrefs::Get(profile()); local 770 prefs, extension_ [all...] |
H A D | permissions_updater_unittest.cc | 234 ExtensionPrefs* prefs = ExtensionPrefs::Get(profile_.get()); local 239 prefs->GetActivePermissions(extension->id()); 242 from_prefs = prefs->GetGrantedPermissions(extension->id()); 267 // Verify that the extension prefs hold the new active permissions and the 269 from_prefs = prefs->GetActivePermissions(extension->id()); 272 from_prefs = prefs->GetGrantedPermissions(extension->id());
|
H A D | settings_api_bubble_controller.cc | 93 ExtensionPrefs* prefs = ExtensionPrefs::Get(profile_); 94 if (prefs->HasSettingsApiBubbleBeenAcknowledged(extension_id)) 121 ExtensionPrefs* prefs = ExtensionPrefs::Get(profile_); local 122 prefs->SetSettingsApiBubbleBeenAcknowledged(extension_id, true); 295 ExtensionPrefs* prefs = ExtensionPrefs::Get(profile_); local 296 if (prefs->HasSettingsApiBubbleBeenAcknowledged(extension_id))
|
H A D | unpacked_installer.cc | 220 ExtensionPrefs* prefs = ExtensionPrefs::Get(service_weak_->profile()); local 221 if (prefs->HasAllowFileAccessSetting(id)) 222 allow_file_access = prefs->AllowFileAccess(id);
|
/external/chromium_org/chrome/browser/importer/ |
H A D | profile_writer.cc | 11 #include "base/prefs/pref_service.h" 73 profile->GetPrefs()->SetBoolean(bookmarks::prefs::kShowBookmarkBar, true); 109 PrefService* prefs = profile_->GetPrefs(); local 111 const PrefService::Preference* pref = prefs->FindPreference(prefs::kHomePage); 113 prefs->SetString(prefs::kHomePage, home_page.spec());
|
/external/chromium_org/chrome/browser/metrics/variations/ |
H A D | variations_service_unittest.cc | 10 #include "base/prefs/testing_pref_service.h" 175 // Android uses profile prefs as the PrefService to generate the URL. 176 TestingPrefServiceSyncable prefs; local 177 VariationsService::RegisterProfilePrefs(prefs.registry()); 179 TestingPrefServiceSimple prefs; 180 VariationsService::RegisterPrefs(prefs.registry()); 186 GURL url = VariationsService::GetVariationsServerURL(&prefs); 190 prefs.SetString(prefs::kVariationsRestrictParameter, "restricted"); 191 url = VariationsService::GetVariationsServerURL(&prefs); 234 TestingPrefServiceSimple prefs; local 253 TestingPrefServiceSimple prefs; local 266 TestingPrefServiceSimple prefs; local 287 TestingPrefServiceSimple prefs; local 304 TestingPrefServiceSimple prefs; local 334 TestingPrefServiceSimple prefs; local 355 TestingPrefServiceSimple prefs; local 372 TestingPrefServiceSimple prefs; local [all...] |
/external/chromium_org/chrome/browser/net/ |
H A D | firefox_proxy_settings.cc | 32 const char* const kPrefFileName = "prefs.js"; 62 // Parses the prefs found in the file |pref_file| and puts the key/value pairs 63 // in |prefs|. Keys are strings, and values can be strings, booleans or 65 // |prefs| is not filled). 67 // key/pair is not valid UTF-8, it is ignored and will not appear in |prefs|. 69 base::DictionaryValue* prefs) { 111 prefs->SetBoolean(key, is_value_true); 122 prefs->SetString(key, value); 131 prefs->SetInteger(key, int_value); 68 ParsePrefFile(const base::FilePath& pref_file, base::DictionaryValue* prefs) argument
|
H A D | ssl_config_service_manager_pref.cc | 12 #include "base/prefs/pref_change_registrar.h" 13 #include "base/prefs/pref_member.h" 14 #include "base/prefs/pref_registry_simple.h" 15 #include "base/prefs/pref_service.h" 105 // prefs, which are updated by SSLConfigServiceManagerPref when the prefs 124 // Cached value of prefs, should only be accessed from IO thread. 159 void OnPreferenceChanged(PrefService* prefs, 172 // The local_state prefs (should only be accessed from UI thread) 199 prefs 251 OnPreferenceChanged( PrefService* prefs, const std::string& pref_name_in) argument [all...] |
/external/chromium_org/chrome/browser/notifications/ |
H A D | extension_welcome_notification.cc | 10 #include "base/prefs/pref_service.h" 14 #include "chrome/browser/prefs/pref_service_syncable.h" 77 profile_->GetPrefs()->SetBoolean(prefs::kWelcomeNotificationDismissedLocal, 147 prefs::kWelcomeNotificationDismissed, 153 prefs::kWelcomeNotificationDismissedLocal, 200 prefs::kWelcomeNotificationPreviouslyPoppedUp) 205 prefs::kWelcomeNotificationPreviouslyPoppedUp, true); 224 user_prefs::PrefRegistrySyncable* prefs) { 225 prefs->RegisterBooleanPref(prefs 223 RegisterProfilePrefs( user_prefs::PrefRegistrySyncable* prefs) argument [all...] |
/external/chromium_org/chrome/browser/plugins/ |
H A D | plugin_info_message_filter_unittest.cc | 259 TestingPrefServiceSyncable* prefs = profile()->GetTestingPrefService(); local 260 prefs->SetManagedPref(prefs::kManagedDefaultPluginsSetting,
|
/external/chromium_org/chrome/browser/prefs/ |
H A D | pref_metrics_service.cc | 5 #include "chrome/browser/prefs/pref_metrics_service.h" 10 #include "base/prefs/pref_registry_simple.h" 11 #include "base/prefs/pref_service.h" 16 #include "chrome/browser/prefs/pref_service_syncable.h" 17 #include "chrome/browser/prefs/session_startup_pref.h" 18 #include "chrome/browser/prefs/synced_pref_change_registrar.h" 56 PrefServiceSyncable* prefs = PrefServiceSyncable::FromProfile(profile_); local 57 synced_pref_change_registrar_.reset(new SyncedPrefChangeRegistrar(prefs)); 75 bool show_home_button = prefs_->GetBoolean(prefs::kShowHomeButton); 76 bool home_page_is_ntp = prefs_->GetBoolean(prefs 176 PrefServiceSyncable* prefs = PrefServiceSyncable::FromProfile(profile_); local [all...] |
H A D | session_startup_pref.cc | 5 #include "chrome/browser/prefs/session_startup_pref.h" 10 #include "base/prefs/pref_service.h" 11 #include "base/prefs/scoped_user_pref_update.h" 33 // Converts a SessionStartupPref::Type to an integer written to prefs. 42 void SetNewURLList(PrefService* prefs) { argument 43 if (prefs->IsUserModifiablePreference(prefs::kURLsToRestoreOnStartup)) { 46 new base::StringValue(prefs->GetString(prefs::kHomePage)); 48 prefs 104 SetStartupPref(PrefService* prefs, const SessionStartupPref& pref) argument 133 GetStartupPref(PrefService* prefs) argument 152 MigrateIfNecessary(PrefService* prefs) argument 248 MigrateMacDefaultPrefIfNecessary(PrefService* prefs) argument 267 TypeIsManaged(PrefService* prefs) argument 276 URLsAreManaged(PrefService* prefs) argument 285 TypeIsDefault(PrefService* prefs) argument [all...] |
/external/chromium_org/chrome/browser/prefs/tracked/ |
H A D | tracked_preferences_migration_unittest.cc | 5 #include "chrome/browser/prefs/tracked/tracked_preferences_migration.h" 14 #include "base/prefs/testing_pref_service.h" 17 #include "chrome/browser/prefs/interceptable_pref_filter.h" 18 #include "chrome/browser/prefs/pref_hash_store.h" 19 #include "chrome/browser/prefs/pref_hash_store_impl.h" 20 #include "chrome/browser/prefs/pref_hash_store_transaction.h" 21 #include "chrome/browser/prefs/profile_pref_store_manager.h" 22 #include "chrome/browser/prefs/tracked/dictionary_hash_store_contents.h" 23 #include "chrome/browser/prefs/tracked/hash_store_contents.h" 24 #include "chrome/browser/prefs/tracke 355 GetPrefsBack(MockPrefStoreID store_id, scoped_ptr<base::DictionaryValue> prefs, bool prefs_altered) argument [all...] |
/external/chromium_org/chrome/browser/printing/cloud_print/ |
H A D | cloud_print_proxy_service_unittest.cc | 10 #include "base/prefs/testing_pref_service.h" 243 TestingPrefServiceSyncable* prefs = profile_.GetTestingPrefService(); local 244 prefs->SetUserPref( 245 prefs::kCloudPrintEmail, 250 EXPECT_EQ(std::string(), prefs->GetString(prefs::kCloudPrintEmail)); 259 TestingPrefServiceSyncable* prefs = profile_.GetTestingPrefService(); local 260 prefs->SetUserPref(prefs::kCloudPrintEmail, 267 prefs 276 TestingPrefServiceSyncable* prefs = profile_.GetTestingPrefService(); local 294 TestingPrefServiceSyncable* prefs = profile_.GetTestingPrefService(); local 311 TestingPrefServiceSyncable* prefs = profile_.GetTestingPrefService(); local 332 TestingPrefServiceSyncable* prefs = profile_.GetTestingPrefService(); local 356 TestingPrefServiceSyncable* prefs = profile_.GetTestingPrefService(); local 377 TestingPrefServiceSyncable* prefs = profile_.GetTestingPrefService(); local 396 TestingPrefServiceSyncable* prefs = profile_.GetTestingPrefService(); local 419 TestingPrefServiceSyncable* prefs = profile_.GetTestingPrefService(); local 455 TestingPrefServiceSyncable* prefs = profile_.GetTestingPrefService(); local [all...] |
/external/chromium_org/chrome/browser/profile_resetter/ |
H A D | automatic_profile_resetter_delegate_unittest.cc | 13 #include "base/prefs/pref_service.h" 94 // Returns the details of the default search provider from |prefs| in a format 97 const PrefService* prefs) { 98 return prefs->GetDictionary( 362 PrefService* prefs = profile()->GetPrefs(); local 363 ASSERT_TRUE(prefs); 367 GetDefaultSearchProviderDetailsFromPrefs(prefs); 438 PrefService* prefs = profile()->GetPrefs(); local 439 ASSERT_TRUE(prefs); 441 GetDefaultSearchProviderDetailsFromPrefs(prefs); 96 GetDefaultSearchProviderDetailsFromPrefs( const PrefService* prefs) argument 541 PrefService* prefs = profile()->GetPrefs(); local 560 PrefService* prefs = profile()->GetPrefs(); local 582 PrefService* prefs = profile()->GetPrefs(); local [all...] |
H A D | profile_resetter.cc | 9 #include "base/prefs/pref_service.h" 10 #include "base/prefs/scoped_user_pref_update.h" 158 PrefService* prefs = profile_->GetPrefs(); local 159 DCHECK(prefs); 167 ListPrefUpdate update(prefs, prefs::kSearchProviderOverrides); 174 prefs->ClearPref(prefs::kLastPromptedGoogleURL); 198 PrefService* prefs = profile_->GetPrefs(); local 199 DCHECK(prefs); 220 PrefService* prefs = profile_->GetPrefs(); local 243 PrefService* prefs = profile_->GetPrefs(); local 267 PrefService* prefs = profile_->GetPrefs(); local [all...] |
H A D | resettable_settings_snapshot.cc | 8 #include "base/prefs/pref_service.h" 67 PrefService* prefs = profile->GetPrefs(); local 68 DCHECK(prefs); 69 homepage_ = prefs->GetString(prefs::kHomePage); 70 homepage_is_ntp_ = prefs->GetBoolean(prefs::kHomePageIsNewTabPage); 71 show_home_button_ = prefs->GetBoolean(prefs::kShowHomeButton);
|
/external/chromium_org/chrome/browser/spellchecker/ |
H A D | spellcheck_service.cc | 7 #include "base/prefs/pref_member.h" 8 #include "base/prefs/pref_service.h" 41 PrefService* prefs = user_prefs::UserPrefs::Get(context); local 42 pref_change_registrar_.Init(prefs); 47 prefs->GetString(prefs::kSpellCheckDictionary), 54 prefs::kEnableAutoSpellCorrect, 58 prefs::kSpellCheckDictionary, 62 prefs::kSpellCheckUseSpellingService, 66 prefs 90 PrefService* prefs = user_prefs::UserPrefs::Get(context); local 285 PrefService* prefs = user_prefs::UserPrefs::Get(context_); local [all...] |
/external/chromium_org/chrome/browser/supervised_user/ |
H A D | supervised_user_registration_utility_unittest.cc | 9 #include "base/prefs/scoped_user_pref_update.h" 112 PrefService* prefs() { return profile_.GetTestingPrefService(); } function in class:SupervisedUserRegistrationUtilityTest 209 SupervisedUserRegistrationUtility::CreateImpl(prefs(), 255 EXPECT_EQ(1u, prefs()->GetDictionary(prefs::kSupervisedUsers)->size()); 268 EXPECT_EQ(1u, prefs()->GetDictionary(prefs::kSupervisedUsers)->size()); 284 EXPECT_EQ(1u, prefs()->GetDictionary(prefs::kSupervisedUsers)->size()); 286 EXPECT_EQ(0u, prefs() [all...] |
H A D | supervised_user_shared_settings_service.cc | 9 #include "base/prefs/pref_service.h" 10 #include "base/prefs/scoped_user_pref_update.h" 51 ScopedSupervisedUserSharedSettingsUpdate(PrefService* prefs, argument 53 : update_(prefs, prefs::kSupervisedUserSharedSettings), su_id_(su_id) { 57 std::string id = prefs->GetString(prefs::kSupervisedUserId); 93 PrefService* prefs) 94 : prefs_(prefs) {} 131 prefs_->GetDictionary(prefs 92 SupervisedUserSharedSettingsService( PrefService* prefs) argument [all...] |
H A D | supervised_user_sync_service_unittest.cc | 9 #include "base/prefs/scoped_user_pref_update.h" 99 PrefService* prefs() { return profile_.GetPrefs(); } function in class:SupervisedUserSyncServiceTest 196 DictionaryPrefUpdate update(prefs(), prefs::kSupervisedUsers);
|