| 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_pref_service_factory.h" | 5 #include "chrome/browser/prefs/chrome_pref_service_factory.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 PrefHashFilter::TRACKING_STRATEGY_ATOMIC, | 214 PrefHashFilter::TRACKING_STRATEGY_ATOMIC, |
| 215 PrefHashFilter::VALUE_IMPERSONAL | 215 PrefHashFilter::VALUE_IMPERSONAL |
| 216 }, | 216 }, |
| 217 { | 217 { |
| 218 20, prefs::kSwReporterPromptReason, | 218 20, prefs::kSwReporterPromptReason, |
| 219 PrefHashFilter::ENFORCE_ON_LOAD, | 219 PrefHashFilter::ENFORCE_ON_LOAD, |
| 220 PrefHashFilter::TRACKING_STRATEGY_ATOMIC, | 220 PrefHashFilter::TRACKING_STRATEGY_ATOMIC, |
| 221 PrefHashFilter::VALUE_IMPERSONAL | 221 PrefHashFilter::VALUE_IMPERSONAL |
| 222 }, | 222 }, |
| 223 #endif | 223 #endif |
| 224 // This pref is deprecated and will be removed a few releases after M43. |
| 225 // kGoogleServicesAccountId replaces it. |
| 224 { | 226 { |
| 225 21, prefs::kGoogleServicesUsername, | 227 21, prefs::kGoogleServicesUsername, |
| 226 PrefHashFilter::ENFORCE_ON_LOAD, | 228 PrefHashFilter::ENFORCE_ON_LOAD, |
| 227 PrefHashFilter::TRACKING_STRATEGY_ATOMIC, | 229 PrefHashFilter::TRACKING_STRATEGY_ATOMIC, |
| 228 PrefHashFilter::VALUE_PERSONAL | 230 PrefHashFilter::VALUE_PERSONAL |
| 229 }, | 231 }, |
| 230 #if defined(OS_WIN) | 232 #if defined(OS_WIN) |
| 231 { | 233 { |
| 232 22, prefs::kSwReporterPromptSeed, | 234 22, prefs::kSwReporterPromptSeed, |
| 233 PrefHashFilter::ENFORCE_ON_LOAD, | 235 PrefHashFilter::ENFORCE_ON_LOAD, |
| 234 PrefHashFilter::TRACKING_STRATEGY_ATOMIC, | 236 PrefHashFilter::TRACKING_STRATEGY_ATOMIC, |
| 235 PrefHashFilter::VALUE_IMPERSONAL | 237 PrefHashFilter::VALUE_IMPERSONAL |
| 236 }, | 238 }, |
| 237 #endif | 239 #endif |
| 240 { |
| 241 23, prefs::kGoogleServicesAccountId, |
| 242 PrefHashFilter::ENFORCE_ON_LOAD, |
| 243 PrefHashFilter::TRACKING_STRATEGY_ATOMIC, |
| 244 PrefHashFilter::VALUE_PERSONAL |
| 245 }, |
| 238 // See note at top, new items added here also need to be added to | 246 // See note at top, new items added here also need to be added to |
| 239 // histograms.xml's TrackedPreference enum. | 247 // histograms.xml's TrackedPreference enum. |
| 240 }; | 248 }; |
| 241 | 249 |
| 242 // One more than the last tracked preferences ID above. | 250 // One more than the last tracked preferences ID above. |
| 243 const size_t kTrackedPrefsReportingIDsCount = | 251 const size_t kTrackedPrefsReportingIDsCount = |
| 244 kTrackedPrefs[arraysize(kTrackedPrefs) - 1].reporting_id + 1; | 252 kTrackedPrefs[arraysize(kTrackedPrefs) - 1].reporting_id + 1; |
| 245 | 253 |
| 246 // Each group enforces a superset of the protection provided by the previous | 254 // Each group enforces a superset of the protection provided by the previous |
| 247 // one. | 255 // one. |
| (...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 572 | 580 |
| 573 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) { | 581 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) { |
| 574 ProfilePrefStoreManager::RegisterProfilePrefs(registry); | 582 ProfilePrefStoreManager::RegisterProfilePrefs(registry); |
| 575 } | 583 } |
| 576 | 584 |
| 577 void RegisterPrefs(PrefRegistrySimple* registry) { | 585 void RegisterPrefs(PrefRegistrySimple* registry) { |
| 578 ProfilePrefStoreManager::RegisterPrefs(registry); | 586 ProfilePrefStoreManager::RegisterPrefs(registry); |
| 579 } | 587 } |
| 580 | 588 |
| 581 } // namespace chrome_prefs | 589 } // namespace chrome_prefs |
| OLD | NEW |