diff options
author | rlarocque@chromium.org <rlarocque@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-06 06:51:36 +0000 |
---|---|---|
committer | rlarocque@chromium.org <rlarocque@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-06 06:51:36 +0000 |
commit | 8925eca81cf7b5f2261e7fa6e933fd5225a73985 (patch) | |
tree | f8b74c38b41539a13365c04db63ede034980eda1 /sync/tools/null_invalidation_state_tracker.cc | |
parent | 05315b8f1bc81ea6e3aa0ed187d9485f527bc66a (diff) | |
download | chromium_src-8925eca81cf7b5f2261e7fa6e933fd5225a73985.zip chromium_src-8925eca81cf7b5f2261e7fa6e933fd5225a73985.tar.gz chromium_src-8925eca81cf7b5f2261e7fa6e933fd5225a73985.tar.bz2 |
Migrate invalidator client IDs out of sync
We want to store invalidator client IDs somewhere other than the sync
DB. Unfortunately, changing in the ID would require us to clear any
existing client state, which is something we'd prefer to avoid.
This commit makes the SyncInvalidationListener copy its sync-assigned
client ID to the InvalidationStateTracker when it is initialized. When
we decide to fully separate the sync and notifier IDs, the clients that
have run through this code path will find that their notifier client ID
has already been initialized correctly. This allows us to avoid
clearing their client state.
It's impossible to guarantee that all clients will hit this code path.
Fortunately, we don't have to. The goal of this patch is to avoid
deleting the state of too many clients all at once. It's not a big
problem if we have to clear the state of a few stragglers that haven't
hit the migration path yet.
BUG=124142
Review URL: https://chromiumcodereview.appspot.com/12094113
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@180907 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sync/tools/null_invalidation_state_tracker.cc')
-rw-r--r-- | sync/tools/null_invalidation_state_tracker.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sync/tools/null_invalidation_state_tracker.cc b/sync/tools/null_invalidation_state_tracker.cc index 5eb5f78..084630c 100644 --- a/sync/tools/null_invalidation_state_tracker.cc +++ b/sync/tools/null_invalidation_state_tracker.cc @@ -37,6 +37,15 @@ void NullInvalidationStateTracker::Forget(const ObjectIdSet& ids) { } } +void NullInvalidationStateTracker::SetInvalidatorClientId( + const std::string& data) { + LOG(INFO) << "Setting invalidator client ID to: " << data; +} + +std::string NullInvalidationStateTracker::GetInvalidatorClientId() const { + return std::string(); +} + std::string NullInvalidationStateTracker::GetBootstrapData() const { return std::string(); } |