Extension syncing: Introduce a NeedsSync pref
commitc349453205678fda3d6a8a7f1a90a5cec56b8216
authortreib <treib@chromium.org>
Tue, 21 Jul 2015 14:51:45 +0000 (21 07:51 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 21 Jul 2015 14:52:30 +0000 (21 14:52 +0000)
tree43d9cfdf707c93150510b818d7b828652b74dbb2
parent6839695e30402d0ea6324a245a956807aeb5bdb7
Extension syncing: Introduce a NeedsSync pref
that indicates the extension has local changes that still need to be synced.
It's set when something changes before sync is ready, and cleared once the extension state has been synced.

This should handle all conflicts between sync and local state reasonably well, and as a bonus allows us to get rid of the (weird and not-really-working) PendingEnables class.

BUG=509990

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

Cr-Commit-Position: refs/heads/master@{#339651}
13 files changed:
chrome/browser/extensions/extension_service.cc
chrome/browser/extensions/extension_service.h
chrome/browser/extensions/extension_service_unittest.cc
chrome/browser/extensions/extension_sync_data.cc
chrome/browser/extensions/extension_sync_service.cc
chrome/browser/extensions/extension_sync_service.h
chrome/browser/extensions/pending_enables.cc [deleted file]
chrome/browser/extensions/pending_enables.h [deleted file]
chrome/browser/extensions/sync_bundle.cc
chrome/browser/extensions/sync_bundle.h
chrome/chrome_browser_extensions.gypi
extensions/browser/extension_prefs.cc
extensions/browser/extension_prefs.h