Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(359)

Side by Side Diff: chrome/browser/prefs/chrome_pref_service_factory.cc

Issue 411793004: More fine-grained pruning in safe browsing incident reporting service. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: gab comments Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 { 188 {
189 16, prefs::kSafeBrowsingIncidentReportSent, 189 16, prefs::kSafeBrowsingIncidentReportSent,
190 PrefHashFilter::ENFORCE_ON_LOAD, 190 PrefHashFilter::ENFORCE_ON_LOAD,
191 PrefHashFilter::TRACKING_STRATEGY_ATOMIC 191 PrefHashFilter::TRACKING_STRATEGY_ATOMIC
192 }, 192 },
193 { 193 {
194 17, sync_driver::prefs::kSyncRemainingRollbackTries, 194 17, sync_driver::prefs::kSyncRemainingRollbackTries,
195 PrefHashFilter::ENFORCE_ON_LOAD, 195 PrefHashFilter::ENFORCE_ON_LOAD,
196 PrefHashFilter::TRACKING_STRATEGY_ATOMIC 196 PrefHashFilter::TRACKING_STRATEGY_ATOMIC
197 }, 197 },
198 {
199 18, prefs::kSafeBrowsingIncidentsSent,
200 PrefHashFilter::ENFORCE_ON_LOAD,
201 PrefHashFilter::TRACKING_STRATEGY_ATOMIC
202 },
198 }; 203 };
199 204
200 // The count of tracked preferences IDs across all platforms. 205 // The count of tracked preferences IDs across all platforms.
201 const size_t kTrackedPrefsReportingIDsCount = 18; 206 const size_t kTrackedPrefsReportingIDsCount = 19;
202 COMPILE_ASSERT(kTrackedPrefsReportingIDsCount >= arraysize(kTrackedPrefs), 207 COMPILE_ASSERT(kTrackedPrefsReportingIDsCount >= arraysize(kTrackedPrefs),
203 need_to_increment_ids_count); 208 need_to_increment_ids_count);
204 209
205 // Each group enforces a superset of the protection provided by the previous 210 // Each group enforces a superset of the protection provided by the previous
206 // one. 211 // one.
207 enum SettingsEnforcementGroup { 212 enum SettingsEnforcementGroup {
208 GROUP_NO_ENFORCEMENT, 213 GROUP_NO_ENFORCEMENT,
209 // Enforce protected settings on profile loads. 214 // Enforce protected settings on profile loads.
210 GROUP_ENFORCE_ALWAYS, 215 GROUP_ENFORCE_ALWAYS,
211 // Also enforce extension default search. 216 // Also enforce extension default search.
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after
519 524
520 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) { 525 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) {
521 ProfilePrefStoreManager::RegisterProfilePrefs(registry); 526 ProfilePrefStoreManager::RegisterProfilePrefs(registry);
522 } 527 }
523 528
524 void RegisterPrefs(PrefRegistrySimple* registry) { 529 void RegisterPrefs(PrefRegistrySimple* registry) {
525 ProfilePrefStoreManager::RegisterPrefs(registry); 530 ProfilePrefStoreManager::RegisterPrefs(registry);
526 } 531 }
527 532
528 } // namespace chrome_prefs 533 } // namespace chrome_prefs
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/profiles/profile.cc » ('j') | chrome/browser/safe_browsing/incident_reporting_service.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698