/external/chromium/chrome/browser/ |
D | background_contents_service_unittest.cc | 32 const DictionaryValue* GetPrefs(Profile* profile) { in GetPrefs() function in BackgroundContentsServiceTest 33 return profile->GetPrefs()->GetDictionary( in GetPrefs() 38 profile->GetPrefs()->ClearPref(prefs::kRegisteredBackgroundContents); in ClearPrefs() 43 const DictionaryValue* pref = GetPrefs(profile); in GetPrefURLForApp() 136 EXPECT_EQ(0U, GetPrefs(&profile)->size()); in TEST_F() 140 EXPECT_EQ(1U, GetPrefs(&profile)->size()); in TEST_F() 145 EXPECT_EQ(1U, GetPrefs(&profile)->size()); in TEST_F() 149 EXPECT_EQ(1U, GetPrefs(&profile)->size()); in TEST_F() 158 EXPECT_EQ(0U, GetPrefs(&profile)->size()); in TEST_F() 161 EXPECT_EQ(1U, GetPrefs(&profile)->size()); in TEST_F() [all …]
|
D | plugin_updater.cc | 133 profile->GetPrefs()->GetFilePath(prefs::kPluginsLastInternalDirectory); in UpdatePluginGroupsStateFromPrefs() 138 profile->GetPrefs()->SetFilePath( in UpdatePluginGroupsStateFromPrefs() 149 if (!profile->GetPrefs()->GetBoolean(prefs::kPluginsEnabledInternalPDF)) { in UpdatePluginGroupsStateFromPrefs() 153 profile->GetPrefs()->SetBoolean(prefs::kPluginsEnabledInternalPDF, true); in UpdatePluginGroupsStateFromPrefs() 158 ListPrefUpdate update(profile->GetPrefs(), prefs::kPluginsPluginsList); in UpdatePluginGroupsStateFromPrefs() 217 profile->GetPrefs()->GetList(prefs::kPluginsDisabledPlugins); in UpdatePluginGroupsStateFromPrefs() 219 profile->GetPrefs()->GetList(prefs::kPluginsDisabledPluginsExceptions); in UpdatePluginGroupsStateFromPrefs() 221 profile->GetPrefs()->GetList(prefs::kPluginsEnabledPlugins); in UpdatePluginGroupsStateFromPrefs() 267 ListPrefUpdate update(profile->GetPrefs(), prefs::kPluginsPluginsList); in OnUpdatePreferences() 273 profile->GetPrefs()->SetFilePath(prefs::kPluginsLastInternalDirectory, in OnUpdatePreferences()
|
/external/chromium/chrome/browser/extensions/ |
D | extension_proxy_apitest.cc | 80 PrefService* pref_service = browser()->profile()->GetPrefs(); in IN_PROC_BROWSER_TEST_F() 94 PrefService* pref_service = browser()->profile()->GetPrefs(); in IN_PROC_BROWSER_TEST_F() 108 PrefService* pref_service = browser()->profile()->GetPrefs(); in IN_PROC_BROWSER_TEST_F() 125 PrefService* pref_service = browser()->profile()->GetPrefs(); in IN_PROC_BROWSER_TEST_F() 139 PrefService* pref_service = browser()->profile()->GetPrefs(); in IN_PROC_BROWSER_TEST_F() 156 PrefService* pref_service = browser()->profile()->GetPrefs(); in IN_PROC_BROWSER_TEST_F() 170 PrefService* pref_service = browser()->profile()->GetPrefs(); in IN_PROC_BROWSER_TEST_F() 181 pref_service = browser()->profile()->GetOffTheRecordProfile()->GetPrefs(); in IN_PROC_BROWSER_TEST_F() 203 PrefService* pref_service = browser()->profile()->GetPrefs(); in IN_PROC_BROWSER_TEST_F() 207 pref_service = browser()->profile()->GetOffTheRecordProfile()->GetPrefs(); in IN_PROC_BROWSER_TEST_F() [all …]
|
D | extension_content_settings_apitest.cc | 16 PrefService* pref_service = browser()->profile()->GetPrefs(); in IN_PROC_BROWSER_TEST_F() 34 PrefService* prefs = browser()->profile()->GetPrefs(); in IN_PROC_BROWSER_TEST_F() 44 browser()->profile()->GetOffTheRecordProfile()->GetPrefs(); in IN_PROC_BROWSER_TEST_F() 68 PrefService* pref_service = browser()->profile()->GetPrefs(); in IN_PROC_BROWSER_TEST_F() 84 PrefService* prefs = browser()->profile()->GetPrefs(); in IN_PROC_BROWSER_TEST_F()
|
D | external_policy_extension_loader.cc | 41 pref_change_registrar_.Init(profile_->GetPrefs()); in ExternalPolicyExtensionLoader() 50 profile_->GetPrefs()->GetList(prefs::kExtensionInstallForceList); in StartLoading() 82 if (Source<PrefService>(source).ptr() == profile_->GetPrefs()) { in Observe()
|
/external/chromium/chrome/browser/instant/ |
D | promo_counter.cc | 65 if (profile_->GetPrefs()) in Hide() 66 profile_->GetPrefs()->SetBoolean((pref_key_ + kShowKey).c_str(), false); in Hide() 70 PrefService* prefs = profile_->GetPrefs(); in Init() 104 if (profile_->GetPrefs()) in MaxSessionsEncountered() 105 profile_->GetPrefs()->SetBoolean((pref_key_ + kShowKey).c_str(), false); in MaxSessionsEncountered() 113 if (profile_->GetPrefs()) in MaxTimeLapsed() 114 profile_->GetPrefs()->SetBoolean((pref_key_ + kShowKey).c_str(), false); in MaxTimeLapsed()
|
D | promo_counter_unittest.cc | 14 PromoCounter::RegisterUserPrefs(profile.GetPrefs(), "test"); in TEST_F() 26 PromoCounter::RegisterUserPrefs(profile.GetPrefs(), "test"); in TEST_F() 48 PromoCounter::RegisterUserPrefs(profile.GetPrefs(), "test"); in TEST_F() 67 PromoCounter::RegisterUserPrefs(profile.GetPrefs(), "test"); in TEST_F()
|
/external/chromium/chrome/browser/history/ |
D | history_browsertest.cc | 90 PrefService* GetPrefs() { in GetPrefs() function in __anon31591f720111::HistoryBrowserTest 91 return GetProfile()->GetPrefs(); in GetPrefs() 134 EXPECT_FALSE(GetPrefs()->GetBoolean(prefs::kSavingBrowserHistoryDisabled)); in IN_PROC_BROWSER_TEST_F() 157 GetPrefs()->SetBoolean(prefs::kSavingBrowserHistoryDisabled, true); in IN_PROC_BROWSER_TEST_F() 182 EXPECT_FALSE(GetPrefs()->GetBoolean(prefs::kSavingBrowserHistoryDisabled)); in IN_PROC_BROWSER_TEST_F() 200 GetPrefs()->SetBoolean(prefs::kSavingBrowserHistoryDisabled, true); in IN_PROC_BROWSER_TEST_F() 219 GetPrefs()->SetBoolean(prefs::kSavingBrowserHistoryDisabled, true); in IN_PROC_BROWSER_TEST_F() 228 GetPrefs()->SetBoolean(prefs::kSavingBrowserHistoryDisabled, false); in IN_PROC_BROWSER_TEST_F()
|
/external/chromium/chrome/browser/safe_browsing/ |
D | safe_browsing_blocking_page_unittest.cc | 177 contents()->profile()->GetPrefs()->SetBoolean( in TEST_F() 209 contents()->profile()->GetPrefs()->SetBoolean( in TEST_F() 239 contents()->profile()->GetPrefs()->SetBoolean( in TEST_F() 273 contents()->profile()->GetPrefs()->SetBoolean( in TEST_F() 305 contents()->profile()->GetPrefs()->SetBoolean( in TEST_F() 345 contents()->profile()->GetPrefs()->SetBoolean( in TEST_F() 400 contents()->profile()->GetPrefs()->SetBoolean( in TEST_F() 450 contents()->profile()->GetPrefs()->SetBoolean( in TEST_F() 496 contents()->profile()->GetPrefs()->SetBoolean( in TEST_F() 529 contents()->profile()->GetPrefs()->SetBoolean( in TEST_F() [all …]
|
/external/chromium/chrome/browser/geolocation/ |
D | geolocation_content_settings_map.cc | 43 prefs_registrar_.Init(profile_->GetPrefs()); in GeolocationContentSettingsMap() 62 const PrefService* prefs = profile_->GetPrefs(); in GetDefaultContentSetting() 74 return profile_->GetPrefs()->IsManagedPreference( in IsDefaultContentSettingManaged() 90 profile_->GetPrefs()->GetDictionary(prefs::kGeolocationContentSettings); in GetContentSetting() 115 profile_->GetPrefs()->GetDictionary(prefs::kGeolocationContentSettings); in GetAllOriginsSettings() 143 profile_->GetPrefs()->SetInteger(prefs::kGeolocationDefaultContentSetting, in SetDefaultContentSetting() 161 PrefService* prefs = profile_->GetPrefs(); in SetContentSetting() 192 PrefService* prefs = profile_->GetPrefs(); in ResetToDefault()
|
/external/chromium/chrome/browser/ui/webui/ |
D | ntp_resource_cache.cc | 158 pref_change_registrar_.Init(profile_->GetPrefs()); in NTPResourceCache() 239 bool bookmark_bar_attached = profile_->GetPrefs()->GetBoolean( in CreateNewTabIncognitoHTML() 267 profile_->GetPrefs()->GetBoolean(prefs::kShowBookmarkBar) ? in CreateNewTabHTML() 358 profile_->GetPrefs()); in CreateNewTabHTML() 363 if (profile_->GetPrefs()->FindPreference(prefs::kNTPCustomLogoStart) && in CreateNewTabHTML() 364 profile_->GetPrefs()->FindPreference(prefs::kNTPCustomLogoEnd)) { in CreateNewTabHTML() 366 InDateRange(profile_->GetPrefs()->GetDouble(prefs::kNTPCustomLogoStart), in CreateNewTabHTML() 367 profile_->GetPrefs()->GetDouble(prefs::kNTPCustomLogoEnd)) ? in CreateNewTabHTML() 375 if (profile_->GetPrefs()->FindPreference(prefs::kNTPPromoStart) && in CreateNewTabHTML() 376 profile_->GetPrefs()->FindPreference(prefs::kNTPPromoEnd) && in CreateNewTabHTML() [all …]
|
/external/chromium/chrome/browser/printing/cloud_print/ |
D | cloud_print_proxy_service.cc | 62 if (profile_->GetPrefs()->HasPrefPath(prefs::kCloudPrintEmail) && in Initialize() 63 !profile_->GetPrefs()->GetString(prefs::kCloudPrintEmail).empty()) { in Initialize() 123 profile_->GetPrefs()->SetString(prefs::kCloudPrintEmail, std::string()); in OnTokenExpiredNotificationClick() 162 profile_->GetPrefs()->SetString(prefs::kCloudPrintEmail, email); in EnableCloudPrintProxy() 171 profile_->GetPrefs()->SetString(prefs::kCloudPrintEmail, std::string()); in DisableCloudPrintProxy() 175 profile_->GetPrefs()->SetString(prefs::kCloudPrintEmail, in StatusCallback()
|
/external/chromium/chrome/browser/search_engines/ |
D | template_url_prepopulate_data_unittest.cc | 78 profile.GetPrefs()->SetInteger(prefs::kCountryIDAtInstall, kCountryIds[i]); in TEST_F() 82 profile.GetPrefs(), &(urls.get()), &default_index); in TEST_F() 140 profile.GetPrefs()->SetInteger(prefs::kCountryIDAtInstall, in TEST_F() 145 profile.GetPrefs(), &(urls.get()), &default_index); in TEST_F() 162 TemplateURLPrepopulateData::GetEngineForOrigin(profile.GetPrefs(), in TEST_F() 172 profile.GetPrefs(), in TEST_F()
|
/external/chromium/chrome/browser/sync/ |
D | sync_setup_flow.cc | 113 service->profile()->GetPrefs()->GetBoolean(prefs::kKeepEverythingSynced)); in GetArgsForConfigure() 132 service->profile()->GetPrefs()->GetBoolean(prefs::kSyncBookmarks)); in GetArgsForConfigure() 134 service->profile()->GetPrefs()->GetBoolean(prefs::kSyncPreferences)); in GetArgsForConfigure() 136 service->profile()->GetPrefs()->GetBoolean(prefs::kSyncThemes)); in GetArgsForConfigure() 138 service->profile()->GetPrefs()->GetBoolean(prefs::kSyncPasswords)); in GetArgsForConfigure() 140 service->profile()->GetPrefs()->GetBoolean(prefs::kSyncAutofill)); in GetArgsForConfigure() 142 service->profile()->GetPrefs()->GetBoolean(prefs::kSyncExtensions)); in GetArgsForConfigure() 144 service->profile()->GetPrefs()->GetBoolean(prefs::kSyncSessions)); in GetArgsForConfigure() 146 service->profile()->GetPrefs()->GetBoolean(prefs::kSyncTypedUrls)); in GetArgsForConfigure() 148 service->profile()->GetPrefs()->GetBoolean(prefs::kSyncApps)); in GetArgsForConfigure()
|
D | signin_manager.cc | 29 username_ = profile_->GetPrefs()->GetString(prefs::kGoogleServicesUsername); in Initialize() 97 profile_->GetPrefs()->SetString(prefs::kGoogleServicesUsername, username_); in SignOut() 98 profile_->GetPrefs()->ScheduleSavePersistentPrefs(); in SignOut() 114 profile_->GetPrefs()->SetString(prefs::kGoogleServicesUsername, username_); in OnGetUserInfoSuccess() 115 profile_->GetPrefs()->ScheduleSavePersistentPrefs(); in OnGetUserInfoSuccess()
|
D | profile_sync_service.cc | 136 pref_sync_managed_.Init(prefs::kSyncManaged, profile_->GetPrefs(), this); in Initialize() 162 !profile_->GetPrefs()->GetBoolean(prefs::kSyncSuppressStart) && in Initialize() 247 PrefService* pref_service = profile_->GetPrefs(); in RegisterPreferences() 284 PrefService* pref_service = profile_->GetPrefs(); in ClearPreferences() 346 profile_->GetPrefs()->GetInt64(prefs::kSyncLastSyncedTime)); in StartUp() 413 return profile_->GetPrefs()->GetBoolean(prefs::kSyncHasSetupCompleted); in HasSyncSetupCompleted() 417 PrefService* prefs = profile()->GetPrefs(); in SetSyncSetupCompleted() 426 profile_->GetPrefs()->SetInt64(prefs::kSyncLastSyncedTime, in UpdateLastSyncedTime() 428 profile_->GetPrefs()->ScheduleSavePersistentPrefs(); in UpdateLastSyncedTime() 512 if (profile_->GetPrefs()->GetBoolean(prefs::kSyncSuppressStart)) { in OnBackendInitialized() [all …]
|
D | profile_sync_service_startup_unittest.cc | 98 profile_.GetPrefs()->ClearPref(prefs::kSyncHasSetupCompleted); in TEST_F() 106 EXPECT_EQ(0, profile_.GetPrefs()->GetInt64(prefs::kSyncLastSyncedTime)); in TEST_F() 107 EXPECT_FALSE(profile_.GetPrefs()->GetBoolean(prefs::kSyncHasSetupCompleted)); in TEST_F() 144 profile_.GetPrefs()->SetBoolean(prefs::kSyncManaged, true); in TEST_F() 170 profile_.GetPrefs()->SetBoolean(prefs::kSyncManaged, true); in TEST_F() 177 profile_.GetPrefs()->ClearPref(prefs::kSyncManaged); in TEST_F()
|
/external/chromium/chrome/browser/ui/toolbar/ |
D | encoding_menu_controller.cc | 89 encoding = browser_profile->GetPrefs()->GetString(prefs::kDefaultCharset); in IsItemChecked() 92 return browser_profile->GetPrefs()->GetBoolean( in IsItemChecked() 124 profile->GetPrefs()->GetString(prefs::kStaticEncodings), in GetEncodingMenuItems() 125 profile->GetPrefs()->GetString(prefs::kRecentlySelectedEncoding)); in GetEncodingMenuItems()
|
/external/chromium/chrome/browser/profiles/ |
D | profile_impl.cc | 306 PrefService* prefs = GetPrefs(); in DoFinalInit() 337 SSLConfigServiceManager::CreateDefaultManager(GetPrefs(), local_state)); in DoFinalInit() 570 return GetPrefs()->GetFilePath(prefs::kSelectFileLastDirectory); in last_selected_directory() 574 GetPrefs()->SetFilePath(prefs::kSelectFileLastDirectory, path); in set_last_selected_directory() 838 PrefService* ProfileImpl::GetPrefs() { in GetPrefs() function in ProfileImpl 847 otr_prefs_.reset(GetPrefs()->CreateIncognitoPrefService( in GetOffTheRecordPrefs() 980 if (GetPrefs()->GetBoolean(prefs::kSavingBrowserHistoryDisabled) && in GetHistoryService() 1196 GetPrefs(); in DidLastSessionExitCleanly() 1264 PrefService* prefs = GetPrefs(); in ReinitializeSpellCheckHost() 1468 std::string pref_locale = GetPrefs()->GetString(prefs::kApplicationLocale); in ChangeAppLocale() [all …]
|
/external/chromium/chrome/browser/content_settings/ |
D | content_settings_notification_provider.cc | 84 prefs_registrar_.Init(profile_->GetPrefs()); in NotificationProvider() 237 PrefService* prefs = profile_->GetPrefs(); in GetAllowedOrigins() 250 PrefService* prefs = profile_->GetPrefs(); in GetBlockedOrigins() 278 PrefService* prefs = profile_->GetPrefs(); in PersistPermissionChange() 352 PrefService* prefs = profile_->GetPrefs(); in ResetAllowedOrigin() 369 PrefService* prefs = profile_->GetPrefs(); in ResetBlockedOrigin() 381 PrefService* prefs = profile_->GetPrefs(); in ResetAllOrigins()
|
D | host_content_settings_map.cc | 77 PrefService* prefs = profile_->GetPrefs(); in HostContentSettingsMap() 308 PrefService* prefs = profile_->GetPrefs(); in SetBlockThirdPartyCookies() 342 PrefService* prefs = profile_->GetPrefs(); in SetBlockNonsandboxedPlugins() 378 PrefService* prefs = profile_->GetPrefs(); in ResetToDefaults() 398 DCHECK_EQ(profile_->GetPrefs(), Source<PrefService>(source).ptr()); in Observe() 405 block_third_party_cookies_ = profile_->GetPrefs()->GetBoolean( in Observe() 408 profile_->GetPrefs()->IsManagedPreference( in Observe() 412 block_nonsandboxed_plugins_ = profile_->GetPrefs()->GetBoolean( in Observe()
|
D | content_settings_pref_provider.cc | 95 PrefService* prefs = profile->GetPrefs(); in PrefDefaultProvider() 144 PrefService* prefs = profile_->GetPrefs(); in UpdateDefaultSetting() 182 PrefService* prefs = profile_->GetPrefs(); in ResetToDefaults() 195 DCHECK_EQ(profile_->GetPrefs(), Source<PrefService>(source).ptr()); in Observe() 230 PrefService* prefs = profile_->GetPrefs(); in ReadDefaultSettings() 348 PrefService* prefs = profile_->GetPrefs(); in Init() 409 DictionaryPrefUpdate update(profile_ ? profile_->GetPrefs() : NULL, in SetContentSetting() 507 PrefService* prefs = profile_->GetPrefs(); in ResetToDefaults() 523 DictionaryPrefUpdate update(profile_->GetPrefs(), in ClearAllContentSettingsRules() 576 DCHECK_EQ(profile_->GetPrefs(), Source<PrefService>(source).ptr()); in Observe() [all …]
|
D | content_settings_policy_provider.cc | 104 PrefService* prefs = profile->GetPrefs(); in PolicyDefaultProvider() 163 DCHECK_EQ(profile_->GetPrefs(), Source<PrefService>(source).ptr()); in Observe() 231 PrefService* prefs = profile_->GetPrefs(); in UpdateManagedDefaultSetting() 285 PrefService* prefs = profile_->GetPrefs(); in ReadManagedContentSettingsTypes() 295 PrefService* prefs = profile_->GetPrefs(); in Init() 368 PrefService* prefs = profile_->GetPrefs(); in ReadManagedContentSettings() 439 DCHECK_EQ(profile_->GetPrefs(), Source<PrefService>(source).ptr()); in Observe()
|
/external/chromium/chrome/browser/bookmarks/ |
D | bookmark_context_menu_controller.cc | 239 return profile_->GetPrefs()->GetBoolean(prefs::kShowBookmarkBar); in IsCommandIdChecked() 247 profile_->GetPrefs()->GetBoolean(prefs::kEditBookmarksEnabled); in IsCommandIdEnabled() 251 profile_->GetPrefs()->GetBoolean(prefs::kIncognitoEnabled); in IsCommandIdEnabled() 255 profile_->GetPrefs()->GetBoolean(prefs::kIncognitoEnabled); in IsCommandIdEnabled() 274 return !profile_->GetPrefs()->IsManagedPreference( in IsCommandIdEnabled()
|
/external/chromium/chrome/browser/ui/views/bookmarks/ |
D | bookmark_context_menu_controller_views.cc | 225 return profile_->GetPrefs()->GetBoolean(prefs::kShowBookmarkBar); in IsItemChecked() 233 profile_->GetPrefs()->GetBoolean(prefs::kEditBookmarksEnabled); in IsCommandEnabled() 237 profile_->GetPrefs()->GetBoolean(prefs::kIncognitoEnabled); in IsCommandEnabled() 241 profile_->GetPrefs()->GetBoolean(prefs::kIncognitoEnabled); in IsCommandEnabled() 260 return !profile_->GetPrefs()->IsManagedPreference( in IsCommandEnabled()
|