/external/chromium_org/chrome/browser/prefs/tracked/ |
D | pref_service_hash_store_contents_unittest.cc | 17 PrefServiceHashStoreContents::RegisterPrefs(local_state_.registry()); in SetUp() 21 TestingPrefServiceSimple local_state_; member in PrefServiceHashStoreContentsTest 25 PrefServiceHashStoreContents contents("store_id", &local_state_); in TEST_F() 31 PrefServiceHashStoreContents contents("store_id", &local_state_); in TEST_F() 37 PrefServiceHashStoreContents contents("store_id", &local_state_); in TEST_F() 40 &local_state_); in TEST_F() 46 ASSERT_FALSE(local_state_.GetUserPrefValue( in TEST_F() 50 PrefServiceHashStoreContents contents("store_id", &local_state_); in TEST_F() 55 &local_state_); in TEST_F() 60 ASSERT_TRUE(local_state_.GetUserPrefValue( in TEST_F() [all …]
|
/external/chromium_org/chrome/browser/ui/app_list/ |
D | app_list_service_unittest.cc | 95 local_state_ = factory.Create(pref_registry).Pass(); in SetupWithCommandLine() 100 local_state_.get(), in SetupWithCommandLine() 110 scoped_ptr<PrefService> local_state_; member in AppListServiceUnitTest 120 EXPECT_FALSE(local_state_->GetBoolean(prefs::kAppLauncherHasBeenEnabled)); in TEST_F() 122 EXPECT_TRUE(local_state_->GetBoolean(prefs::kAppLauncherHasBeenEnabled)); in TEST_F() 124 local_state_->GetFilePath(prefs::kAppListProfile))); in TEST_F() 146 local_state_->SetString(prefs::kProfileLastUsed, "last-used"); in TEST_F() 174 EXPECT_TRUE(local_state_->GetBoolean(prefs::kAppLauncherHasBeenEnabled)); in TEST_F() 182 EXPECT_FALSE(local_state_->GetBoolean(prefs::kAppLauncherHasBeenEnabled)); in TEST_F() 186 EXPECT_FALSE(local_state_->GetBoolean(prefs::kAppLauncherHasBeenEnabled)); in TEST_F() [all …]
|
D | app_list_service_impl.cc | 207 RecordAppListDiscoverability(local_state_, false); in RecordAppListLaunch() 235 local_state_(g_browser_process->local_state()), in AppListServiceImpl() 246 local_state_(local_state), in AppListServiceImpl() 262 if (local_state_->HasPrefPath(prefs::kAppListProfile)) in GetProfilePath() 263 app_list_profile = local_state_->GetString(prefs::kAppListProfile); in GetProfilePath() 268 local_state_->HasPrefPath(prefs::kProfileLastUsed)) { in GetProfilePath() 269 app_list_profile = local_state_->GetString(prefs::kProfileLastUsed); in GetProfilePath() 286 local_state_->SetString( in SetProfilePath() 298 std::string app_list_last_profile = local_state_->GetString( in OnProfileWillBeRemoved() 301 local_state_->SetString(prefs::kAppListProfile, in OnProfileWillBeRemoved() [all …]
|
/external/chromium_org/chrome/browser/metrics/ |
D | android_metrics_provider.cc | 33 : local_state_(local_state) { in AndroidMetricsProvider() 52 local_state_->GetInteger(prefs::kStabilityLaunchedActivityFlags); in LogStabilityToPrefs() 53 ListPrefUpdate update_launches(local_state_, in LogStabilityToPrefs() 62 local_state_->SetInteger(prefs::kStabilityLaunchedActivityFlags, 0); in LogStabilityToPrefs() 68 local_state_->GetInteger(prefs::kStabilityForegroundActivityType); in LogStabilityToPrefs() 70 ListPrefUpdate update_crashes(local_state_, in LogStabilityToPrefs() 74 local_state_->SetInteger(prefs::kStabilityForegroundActivityType, in LogStabilityToPrefs() 78 local_state_->CommitPendingWrite(); in LogStabilityToPrefs() 82 ListPrefUpdate launch_updater(local_state_, in ConvertStabilityPrefsToHistograms() 84 ListPrefUpdate crash_updater(local_state_, in ConvertStabilityPrefsToHistograms() [all …]
|
D | metrics_services_manager.cc | 22 : local_state_(local_state) { in MetricsServicesManager() 46 chrome_variations::VariationsService::Create(local_state_, in GetVariationsService() 62 GetMetricsStateManager(), local_state_); in GetChromeMetricsServiceClient() 71 local_state_, in GetMetricsStateManager() 93 enabled = local_state_->GetBoolean(prefs::kMetricsReportingEnabled); in IsMetricsReportingEnabled()
|
/external/chromium_org/chrome/browser/chromeos/policy/ |
D | device_cloud_policy_manager_chromeos.cc | 125 local_state_(NULL) { in DeviceCloudPolicyManagerChromeOS() 138 local_state_ = local_state; in Connect() 185 const PrefService::Preference* pref = local_state_->FindPreference( in GetDeviceRequisition() 198 if (local_state_) { in SetDeviceRequisition() 200 local_state_->ClearPref(prefs::kDeviceEnrollmentRequisition); in SetDeviceRequisition() 201 local_state_->ClearPref(prefs::kDeviceEnrollmentAutoStart); in SetDeviceRequisition() 202 local_state_->ClearPref(prefs::kDeviceEnrollmentCanExit); in SetDeviceRequisition() 204 local_state_->SetString(prefs::kDeviceEnrollmentRequisition, requisition); in SetDeviceRequisition() 206 local_state_->ClearPref(prefs::kDeviceEnrollmentAutoStart); in SetDeviceRequisition() 207 local_state_->ClearPref(prefs::kDeviceEnrollmentCanExit); in SetDeviceRequisition() [all …]
|
D | auto_enrollment_client.cc | 105 local_state_(local_state) { in AutoEnrollmentClient() 178 local_state_->FindPreference(prefs::kShouldAutoEnroll); in GetCachedDecision() 180 local_state_->FindPreference(prefs::kAutoEnrollmentPowerLimit); in GetCachedDecision() 236 local_state_->GetDictionary(prefs::kServerBackedDeviceState); in NextStep() 376 local_state_->SetBoolean(prefs::kShouldAutoEnroll, has_server_state_); in OnBucketDownloadRequestCompletion() 377 local_state_->SetInteger(prefs::kAutoEnrollmentPowerLimit, power_limit_); in OnBucketDownloadRequestCompletion() 378 local_state_->CommitPendingWrite(); in OnBucketDownloadRequestCompletion() 400 DictionaryPrefUpdate dict(local_state_, prefs::kServerBackedDeviceState); in OnDeviceStateRequestCompletion() 413 local_state_->CommitPendingWrite(); in OnDeviceStateRequestCompletion()
|
D | auto_enrollment_client_unittest.cc | 48 local_state_(scoped_testing_local_state_.Get()), in AutoEnrollmentClientTest() 53 ASSERT_FALSE(local_state_->GetUserPref(prefs::kShouldAutoEnroll)); in SetUp() 54 ASSERT_FALSE(local_state_->GetUserPref(prefs::kAutoEnrollmentPowerLimit)); in SetUp() 74 local_state_, in CreateClient() 137 return local_state_->GetUserPref(prefs::kShouldAutoEnroll); in HasCachedDecision() 145 local_state_->GetUserPref(prefs::kShouldAutoEnroll))); in VerifyCachedResult() 148 local_state_->GetUserPref(prefs::kAutoEnrollmentPowerLimit))); in VerifyCachedResult() 157 TestingPrefServiceSimple* local_state_; member in policy::__anonad5283a60111::AutoEnrollmentClientTest 341 local_state_->SetUserPref(prefs::kShouldAutoEnroll, in TEST_F() 343 local_state_->SetUserPref(prefs::kAutoEnrollmentPowerLimit, in TEST_F() [all …]
|
/external/chromium_org/components/metrics/ |
D | metrics_state_manager.cc | 49 : local_state_(local_state), in MetricsStateManager() 74 client_id_ = local_state_->GetString(prefs::kMetricsClientID); in ForceClientIdCreation() 79 local_state_->SetString(prefs::kMetricsClientID, client_id_); in ForceClientIdCreation() 81 if (local_state_->GetString(prefs::kMetricsOldClientID).empty()) { in ForceClientIdCreation() 83 local_state_->SetInt64(prefs::kMetricsReportingEnabledTimestamp, in ForceClientIdCreation() 88 local_state_->ClearPref(prefs::kMetricsOldClientID); in ForceClientIdCreation() 100 cloned_install_detector_->CheckForClonedInstall(local_state_, task_runner); in CheckForClonedInstall() 131 new CachingPermutedEntropyProvider(local_state_, in CreateEntropyProvider() 183 int value = local_state_->GetInteger(prefs::kMetricsLowEntropySource); in GetLowEntropySource() 195 local_state_->SetInteger(prefs::kMetricsLowEntropySource, in GetLowEntropySource() [all …]
|
D | metrics_service.cc | 317 local_state_(local_state), in MetricsService() 331 DCHECK(local_state_); in MetricsService() 491 MarkAppCleanShutdownAndCommit(local_state_); in OnAppEnterBackground() 507 local_state_->SetBoolean(metrics::prefs::kStabilityExitedCleanly, false); in OnAppEnterForeground() 549 local_state_->SetString(metrics::prefs::kStabilityStatsVersion, in InitializeMetricsState() 551 local_state_->SetInt64(metrics::prefs::kStabilityStatsBuildTime, in InitializeMetricsState() 554 session_id_ = local_state_->GetInteger(metrics::prefs::kMetricsSessionID); in InitializeMetricsState() 556 if (!local_state_->GetBoolean(metrics::prefs::kStabilityExitedCleanly)) { in InitializeMetricsState() 560 local_state_->SetBoolean(metrics::prefs::kStabilityExitedCleanly, true); in InitializeMetricsState() 565 local_state_->GetInteger(metrics::prefs::kStabilityExecutionPhase); in InitializeMetricsState() [all …]
|
D | persisted_logs.cc | 84 : local_state_(local_state), in PersistedLogs() 91 DCHECK(local_state_); in PersistedLogs() 114 ListPrefUpdate update(local_state_, pref_name_); in SerializeLogs() 119 local_state_->ClearPref(old_pref_name_); in SerializeLogs() 125 const base::ListValue* unsent_logs = local_state_->GetList(old_pref_name_); in DeserializeLogs() 129 unsent_logs = local_state_->GetList(pref_name_); in DeserializeLogs()
|
/external/chromium_org/chrome/browser/metrics/variations/ |
D | variations_seed_store.cc | 116 : local_state_(local_state) { in VariationsSeedStore() 124 local_state_->GetString(prefs::kVariationsSeed); in LoadSeed() 142 local_state_->GetString(prefs::kVariationsSeedSignature); in LoadSeed() 197 local_state_->ClearPref(prefs::kVariationsSeedHash); in StoreSeedData() 199 local_state_->SetString(prefs::kVariationsSeed, base64_seed_data); in StoreSeedData() 201 local_state_->SetString(prefs::kVariationsSeedSignature, in StoreSeedData() 214 if (local_state_->HasPrefPath(prefs::kVariationsSeedDate)) { in UpdateSeedDateAndLogDayChange() 216 local_state_->GetInt64(prefs::kVariationsSeedDate); in UpdateSeedDateAndLogDayChange() 226 local_state_->SetInt64(prefs::kVariationsSeedDate, in UpdateSeedDateAndLogDayChange() 240 local_state_->ClearPref(prefs::kVariationsSeed); in ClearPrefs() [all …]
|
/external/chromium_org/chrome/browser/chromeos/settings/ |
D | device_settings_cache_unittest.cc | 26 device_settings_cache::RegisterPrefs(&local_state_); in SetUp() 29 TestingPrefServiceSimple local_state_; member in chromeos::DeviceSettingsCacheTest 34 EXPECT_TRUE(device_settings_cache::Store(policy_, &local_state_)); in TEST_F() 37 EXPECT_TRUE(device_settings_cache::Retrieve(&policy_out, &local_state_)); in TEST_F() 49 EXPECT_TRUE(device_settings_cache::Store(policy_, &local_state_)); in TEST_F() 51 local_state_.SetString(prefs::kDeviceSettingsCache, "blaaa"); in TEST_F() 54 EXPECT_FALSE(device_settings_cache::Retrieve(&policy_out, &local_state_)); in TEST_F()
|
/external/chromium_org/chrome/browser/chromeos/audio/ |
D | audio_devices_pref_handler_impl.cc | 89 return local_state_->GetBoolean(prefs::kAudioCaptureAllowed); in GetAudioCaptureAllowedValue() 93 return local_state_->GetBoolean(prefs::kAudioOutputAllowed); in GetAudioOutputAllowedValue() 135 local_state_(local_state) { in AudioDevicesPrefHandlerImpl() 146 pref_change_registrar_.Init(local_state_); in InitializePrefObservers() 156 local_state_->GetDictionary(prefs::kAudioDevicesMute); in UpdateDevicesMutePref() 162 DictionaryPrefUpdate dict_update(local_state_, prefs::kAudioDevicesMute); in SaveDevicesMutePref() 174 local_state_->GetDictionary(prefs::kAudioDevicesVolumePercent); in UpdateDevicesVolumePref() 180 DictionaryPrefUpdate dict_update(local_state_, in SaveDevicesVolumePref() 194 int old_mute = local_state_->GetInteger(prefs::kAudioMute); in MigrateDeviceMuteSettings() 201 double old_volume = local_state_->GetDouble(prefs::kAudioVolumePercent); in MigrateDeviceVolumeSettings()
|
/external/chromium_org/chrome/browser/notifications/ |
D | message_center_notifications_unittest_win.cc | 31 MessageCenterNotificationManager::RegisterPrefs(local_state_.registry()); in MessageCenterNotificationManagerTest() 36 local_state_.ClearPref(prefs::kMessageCenterShowedFirstRunBalloon); in SetUp() 38 &local_state_); in SetUp() 49 message_center_, &local_state_, settings_provider.Pass())); in SetUp() 83 const TestingPrefServiceSimple& local_state() { return local_state_; } in local_state() 88 TestingPrefServiceSimple local_state_; member in message_center::MessageCenterNotificationManagerTest
|
/external/chromium_org/chrome/browser/web_resource/ |
D | eula_accepted_notifier.cc | 14 : local_state_(local_state), observer_(NULL) { in EulaAcceptedNotifier() 26 if (local_state_->GetBoolean(prefs::kEulaAccepted)) in IsEulaAccepted() 31 registrar_.Init(local_state_); in IsEulaAccepted() 65 DCHECK(local_state_->GetBoolean(prefs::kEulaAccepted)); in OnPrefChanged()
|
D | eula_accepted_notifier_unittest.cc | 21 local_state_.registry()->RegisterBooleanPref(prefs::kEulaAccepted, false); in SetUp() 22 notifier_.reset(new EulaAcceptedNotifier(&local_state_)); in SetUp() 33 local_state_.SetBoolean(prefs::kEulaAccepted, true); in SetEulaAcceptedPref() 45 TestingPrefServiceSimple local_state_; member in EulaAcceptedNotifierTest
|
/external/chromium_org/chrome/test/base/ |
D | scoped_testing_local_state.cc | 14 chrome::RegisterLocalState(local_state_.registry()); in ScopedTestingLocalState() 16 browser_process->SetLocalState(&local_state_); in ScopedTestingLocalState() 20 EXPECT_EQ(&local_state_, browser_process_->local_state()); in ~ScopedTestingLocalState()
|
D | testing_browser_process.cc | 71 local_state_(NULL), in TestingBrowserProcess() 84 EXPECT_FALSE(local_state_); in ~TestingBrowserProcess() 144 return local_state_; in local_state() 362 return (local_state_ != NULL); in created_local_state() 374 DCHECK(local_state_); in network_time_tracker() 377 local_state_)); in network_time_tracker() 410 local_state_ = local_state; in SetLocalState()
|
D | scoped_testing_local_state.h | 21 return &local_state_; in Get() 26 TestingPrefServiceSimple local_state_; variable
|
/external/chromium_org/chrome/browser/chromeos/ |
D | session_length_limiter_unittest.cc | 122 TestingPrefServiceSimple local_state_; member in chromeos::SessionLengthLimiterTest 194 TestingBrowserProcess::GetGlobal()->SetLocalState(&local_state_); in SetUp() 195 SessionLengthLimiter::RegisterPrefs(local_state_.registry()); in SetUp() 206 local_state_.SetUserPref(prefs::kSessionUserActivitySeen, in SetSessionUserActivitySeenPref() 211 local_state_.ClearPref(prefs::kSessionUserActivitySeen); in ClearSessionUserActivitySeenPref() 215 return local_state_.HasPrefPath(prefs::kSessionUserActivitySeen); in IsSessionUserActivitySeenPrefSet() 220 return local_state_.GetBoolean(prefs::kSessionUserActivitySeen); in GetSessionUserActivitySeenPref() 225 local_state_.SetUserPref( in SetSessionStartTimePref() 232 local_state_.ClearPref(prefs::kSessionStartTime); in ClearSessionStartTimePref() 236 return local_state_.HasPrefPath(prefs::kSessionStartTime); in IsSessionStartTimePrefSet() [all …]
|
/external/chromium_org/components/variations/ |
D | caching_permuted_entropy_provider.cc | 22 local_state_(local_state) { in CachingPermutedEntropyProvider() 55 local_state_->GetString(prefs::kVariationsPermutedEntropyCache); in ReadFromLocalState() 59 local_state_->ClearPref(prefs::kVariationsPermutedEntropyCache); in ReadFromLocalState() 70 local_state_->SetString(prefs::kVariationsPermutedEntropyCache, in UpdateLocalState()
|
/external/chromium_org/chrome/browser/chromeos/login/users/ |
D | multi_profile_user_controller.cc | 54 local_state_(local_state) { in MultiProfileUserController() 160 DictionaryPrefUpdate update(local_state_, in RemoveCachedValues() 169 local_state_->GetDictionary(prefs::kCachedMultiProfileUserBehavior); in GetCachedValue() 184 DictionaryPrefUpdate update(local_state_, in SetCachedValue() 211 DictionaryPrefUpdate update(local_state_, in OnUserPrefChanged()
|
/external/chromium_org/chrome/browser/extensions/ |
D | extension_garbage_collector_chromeos_unittest.cc | 37 PrefService& local_state() { return local_state_; } in local_state() 41 TestingBrowserProcess::GetGlobal()->SetLocalState(&local_state_); in SetUp() 42 chrome::RegisterLocalState(local_state_.registry()); in SetUp() 94 DictionaryPrefUpdate shared_extensions(&local_state_, in CreateSharedExtensionPrefs() 146 TestingPrefServiceSimple local_state_; member in extensions::ExtensionGarbageCollectorChromeOSUnitTest
|
/external/chromium_org/chrome/browser/prefs/ |
D | profile_pref_store_manager_unittest.cc | 99 ProfilePrefStoreManager::RegisterPrefs(local_state_.registry()); in SetUp() 140 &local_state_)); in ReloadConfiguration() 276 TestingPrefServiceSimple local_state_; member in ProfilePrefStoreManagerTest 351 local_state_.GetUserPrefValue( in TEST_F() 360 local_state_.GetUserPrefValue( in TEST_F() 370 ASSERT_FALSE(local_state_.GetUserPrefValue( in TEST_F() 388 local_state_.GetUserPrefValue( in TEST_F() 397 local_state_.GetUserPrefValue( in TEST_F() 414 ASSERT_FALSE(local_state_.GetUserPrefValue( in TEST_F()
|