| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include <chrome/browser/prefs/chrome_command_line_pref_store.h> | 5 #include <chrome/browser/prefs/chrome_command_line_pref_store.h> |
| 6 #include "chrome/browser/prefs/chrome_pref_service_factory.h" | 6 #include "chrome/browser/prefs/chrome_pref_service_factory.h" |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 PrefHashFilter::ENFORCE_ON_LOAD, | 213 PrefHashFilter::ENFORCE_ON_LOAD, |
| 214 PrefHashFilter::TRACKING_STRATEGY_ATOMIC, | 214 PrefHashFilter::TRACKING_STRATEGY_ATOMIC, |
| 215 PrefHashFilter::VALUE_PERSONAL | 215 PrefHashFilter::VALUE_PERSONAL |
| 216 }, | 216 }, |
| 217 { | 217 { |
| 218 24, prefs::kGoogleServicesLastAccountId, | 218 24, prefs::kGoogleServicesLastAccountId, |
| 219 PrefHashFilter::ENFORCE_ON_LOAD, | 219 PrefHashFilter::ENFORCE_ON_LOAD, |
| 220 PrefHashFilter::TRACKING_STRATEGY_ATOMIC, | 220 PrefHashFilter::TRACKING_STRATEGY_ATOMIC, |
| 221 PrefHashFilter::VALUE_PERSONAL | 221 PrefHashFilter::VALUE_PERSONAL |
| 222 }, | 222 }, |
| 223 #if defined(OS_WIN) |
| 224 { |
| 225 25, prefs::kSettingsResetPromptPromptWave, |
| 226 PrefHashFilter::ENFORCE_ON_LOAD, |
| 227 PrefHashFilter::TRACKING_STRATEGY_ATOMIC, |
| 228 PrefHashFilter::VALUE_IMPERSONAL |
| 229 }, |
| 230 { |
| 231 26, prefs::kSettingsResetPromptLastTriggeredForDefaultSearch, |
| 232 PrefHashFilter::ENFORCE_ON_LOAD, |
| 233 PrefHashFilter::TRACKING_STRATEGY_ATOMIC, |
| 234 PrefHashFilter::VALUE_IMPERSONAL |
| 235 }, |
| 236 { |
| 237 27, prefs::kSettingsResetPromptLastTriggeredForStartupUrls, |
| 238 PrefHashFilter::ENFORCE_ON_LOAD, |
| 239 PrefHashFilter::TRACKING_STRATEGY_ATOMIC, |
| 240 PrefHashFilter::VALUE_IMPERSONAL |
| 241 }, |
| 242 { |
| 243 28, prefs::kSettingsResetPromptLastTriggeredForHomepage, |
| 244 PrefHashFilter::ENFORCE_ON_LOAD, |
| 245 PrefHashFilter::TRACKING_STRATEGY_ATOMIC, |
| 246 PrefHashFilter::VALUE_IMPERSONAL |
| 247 }, |
| 248 #endif // defined(OS_WIN) |
| 223 // See note at top, new items added here also need to be added to | 249 // See note at top, new items added here also need to be added to |
| 224 // histograms.xml's TrackedPreference enum. | 250 // histograms.xml's TrackedPreference enum. |
| 225 }; | 251 }; |
| 226 | 252 |
| 227 // One more than the last tracked preferences ID above. | 253 // One more than the last tracked preferences ID above. |
| 228 const size_t kTrackedPrefsReportingIDsCount = | 254 const size_t kTrackedPrefsReportingIDsCount = |
| 229 kTrackedPrefs[arraysize(kTrackedPrefs) - 1].reporting_id + 1; | 255 kTrackedPrefs[arraysize(kTrackedPrefs) - 1].reporting_id + 1; |
| 230 | 256 |
| 231 // Each group enforces a superset of the protection provided by the previous | 257 // Each group enforces a superset of the protection provided by the previous |
| 232 // one. | 258 // one. |
| (...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 524 | 550 |
| 525 void ClearResetTime(Profile* profile) { | 551 void ClearResetTime(Profile* profile) { |
| 526 ProfilePrefStoreManager::ClearResetTime(profile->GetPrefs()); | 552 ProfilePrefStoreManager::ClearResetTime(profile->GetPrefs()); |
| 527 } | 553 } |
| 528 | 554 |
| 529 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) { | 555 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) { |
| 530 ProfilePrefStoreManager::RegisterProfilePrefs(registry); | 556 ProfilePrefStoreManager::RegisterProfilePrefs(registry); |
| 531 } | 557 } |
| 532 | 558 |
| 533 } // namespace chrome_prefs | 559 } // namespace chrome_prefs |
| OLD | NEW |