| 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 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 PrefHashFilter::TRACKING_STRATEGY_ATOMIC, | 210 PrefHashFilter::TRACKING_STRATEGY_ATOMIC, |
| 211 PrefHashFilter::VALUE_IMPERSONAL | 211 PrefHashFilter::VALUE_IMPERSONAL |
| 212 }, | 212 }, |
| 213 #endif | 213 #endif |
| 214 { | 214 { |
| 215 21, prefs::kGoogleServicesUsername, | 215 21, prefs::kGoogleServicesUsername, |
| 216 PrefHashFilter::ENFORCE_ON_LOAD, | 216 PrefHashFilter::ENFORCE_ON_LOAD, |
| 217 PrefHashFilter::TRACKING_STRATEGY_ATOMIC, | 217 PrefHashFilter::TRACKING_STRATEGY_ATOMIC, |
| 218 PrefHashFilter::VALUE_PERSONAL | 218 PrefHashFilter::VALUE_PERSONAL |
| 219 }, | 219 }, |
| 220 #if defined(OS_WIN) |
| 221 { |
| 222 22, prefs::kSwReporterPromptSeed, |
| 223 PrefHashFilter::ENFORCE_ON_LOAD, |
| 224 PrefHashFilter::TRACKING_STRATEGY_ATOMIC, |
| 225 PrefHashFilter::VALUE_IMPERSONAL |
| 226 }, |
| 227 #endif |
| 220 // See note at top, new items added here also need to be added to | 228 // See note at top, new items added here also need to be added to |
| 221 // histograms.xml's TrackedPreference enum. | 229 // histograms.xml's TrackedPreference enum. |
| 222 }; | 230 }; |
| 223 | 231 |
| 224 // One more than the last tracked preferences ID above. | 232 // One more than the last tracked preferences ID above. |
| 225 const size_t kTrackedPrefsReportingIDsCount = | 233 const size_t kTrackedPrefsReportingIDsCount = |
| 226 kTrackedPrefs[arraysize(kTrackedPrefs) - 1].reporting_id + 1; | 234 kTrackedPrefs[arraysize(kTrackedPrefs) - 1].reporting_id + 1; |
| 227 | 235 |
| 228 // Each group enforces a superset of the protection provided by the previous | 236 // Each group enforces a superset of the protection provided by the previous |
| 229 // one. | 237 // one. |
| (...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 530 | 538 |
| 531 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) { | 539 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) { |
| 532 ProfilePrefStoreManager::RegisterProfilePrefs(registry); | 540 ProfilePrefStoreManager::RegisterProfilePrefs(registry); |
| 533 } | 541 } |
| 534 | 542 |
| 535 void RegisterPrefs(PrefRegistrySimple* registry) { | 543 void RegisterPrefs(PrefRegistrySimple* registry) { |
| 536 ProfilePrefStoreManager::RegisterPrefs(registry); | 544 ProfilePrefStoreManager::RegisterPrefs(registry); |
| 537 } | 545 } |
| 538 | 546 |
| 539 } // namespace chrome_prefs | 547 } // namespace chrome_prefs |
| OLD | NEW |