Chromium Code Reviews| 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, | |
| 223 prefs::kSwReporterPromptSeed, | |
|
gab
2015/01/27 19:53:09
nit: For consistency with other entries in this li
| |
| 224 PrefHashFilter::ENFORCE_ON_LOAD, | |
| 225 PrefHashFilter::TRACKING_STRATEGY_ATOMIC, | |
| 226 PrefHashFilter::VALUE_IMPERSONAL | |
| 227 }, | |
| 228 #endif | |
| 220 // See note at top, new items added here also need to be added to | 229 // See note at top, new items added here also need to be added to |
| 221 // histograms.xml's TrackedPreference enum. | 230 // histograms.xml's TrackedPreference enum. |
| 222 }; | 231 }; |
| 223 | 232 |
| 224 // One more than the last tracked preferences ID above. | 233 // One more than the last tracked preferences ID above. |
| 225 const size_t kTrackedPrefsReportingIDsCount = | 234 const size_t kTrackedPrefsReportingIDsCount = |
| 226 kTrackedPrefs[arraysize(kTrackedPrefs) - 1].reporting_id + 1; | 235 kTrackedPrefs[arraysize(kTrackedPrefs) - 1].reporting_id + 1; |
| 227 | 236 |
| 228 // Each group enforces a superset of the protection provided by the previous | 237 // Each group enforces a superset of the protection provided by the previous |
| 229 // one. | 238 // one. |
| (...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 530 | 539 |
| 531 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) { | 540 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) { |
| 532 ProfilePrefStoreManager::RegisterProfilePrefs(registry); | 541 ProfilePrefStoreManager::RegisterProfilePrefs(registry); |
| 533 } | 542 } |
| 534 | 543 |
| 535 void RegisterPrefs(PrefRegistrySimple* registry) { | 544 void RegisterPrefs(PrefRegistrySimple* registry) { |
| 536 ProfilePrefStoreManager::RegisterPrefs(registry); | 545 ProfilePrefStoreManager::RegisterPrefs(registry); |
| 537 } | 546 } |
| 538 | 547 |
| 539 } // namespace chrome_prefs | 548 } // namespace chrome_prefs |
| OLD | NEW |