Skip to content
This repository has been archived by the owner on Apr 3, 2020. It is now read-only.

Commit

Permalink
Protect the kSyncRemainingRollbackTries pref.
Browse files Browse the repository at this point in the history
BUG=387933

Review URL: https://codereview.chromium.org/347103005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@279230 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
[email protected] committed Jun 23, 2014
1 parent c644ea6 commit 30e29db
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion chrome/browser/prefs/chrome_pref_service_factory.cc
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
#include "chrome/common/pref_names.h"
#include "components/pref_registry/pref_registry_syncable.h"
#include "components/search_engines/search_engines_pref_names.h"
#include "components/sync_driver/pref_names.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/browser_thread.h"
#include "extensions/browser/pref_names.h"
Expand Down Expand Up @@ -180,10 +181,15 @@ const PrefHashFilter::TrackedPreferenceMetadata kTrackedPrefs[] = {
PrefHashFilter::ENFORCE_ON_LOAD,
PrefHashFilter::TRACKING_STRATEGY_ATOMIC
},
{
17, sync_driver::prefs::kSyncRemainingRollbackTries,
PrefHashFilter::ENFORCE_ON_LOAD,
PrefHashFilter::TRACKING_STRATEGY_ATOMIC
},
};

// The count of tracked preferences IDs across all platforms.
const size_t kTrackedPrefsReportingIDsCount = 17;
const size_t kTrackedPrefsReportingIDsCount = 18;
COMPILE_ASSERT(kTrackedPrefsReportingIDsCount >= arraysize(kTrackedPrefs),
need_to_increment_ids_count);

Expand Down

0 comments on commit 30e29db

Please sign in to comment.