summaryrefslogtreecommitdiffstats
path: root/sync/tools
diff options
context:
space:
mode:
authordcheng@chromium.org <dcheng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-03 05:54:40 +0000
committerdcheng@chromium.org <dcheng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-03 05:54:40 +0000
commit8cdb68911b8fe9e6c5662d5bdf8a33c77133092b (patch)
tree1f4b703c5a37a0b84430e074834e530223aedd21 /sync/tools
parentc170c6465249f5031564c2411cc20dda9bb244e3 (diff)
downloadchromium_src-8cdb68911b8fe9e6c5662d5bdf8a33c77133092b.zip
chromium_src-8cdb68911b8fe9e6c5662d5bdf8a33c77133092b.tar.gz
chromium_src-8cdb68911b8fe9e6c5662d5bdf8a33c77133092b.tar.bz2
Rename InvalidationState to BootstrapData
We have a lot of things called 'state' in sync/, so we're renaming them to better reflect their actual purpose. The 'state' in this CL is used for bootstrapping a connection to the cache invalidation server, so we don't need to go through the process of re-registering each ID we're interested in each time we reconnect. BUG=none Review URL: https://chromiumcodereview.appspot.com/11050005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@159845 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sync/tools')
-rw-r--r--sync/tools/sync_client.cc10
-rw-r--r--sync/tools/sync_listen_notifications.cc10
2 files changed, 10 insertions, 10 deletions
diff --git a/sync/tools/sync_client.cc b/sync/tools/sync_client.cc
index 5226fa9..8a8c76b 100644
--- a/sync/tools/sync_client.cc
+++ b/sync/tools/sync_client.cc
@@ -89,14 +89,14 @@ class NullInvalidationStateTracker
}
}
- virtual std::string GetInvalidationState() const OVERRIDE {
+ virtual std::string GetBootstrapData() const OVERRIDE {
return std::string();
}
- virtual void SetInvalidationState(const std::string& state) OVERRIDE {
- std::string base64_state;
- CHECK(base::Base64Encode(state, &base64_state));
- VLOG(1) << "Setting invalidation state to: " << base64_state;
+ virtual void SetBootstrapData(const std::string& data) OVERRIDE {
+ std::string base64_data;
+ CHECK(base::Base64Encode(data, &base64_data));
+ VLOG(1) << "Setting bootstrap data to: " << base64_data;
}
};
diff --git a/sync/tools/sync_listen_notifications.cc b/sync/tools/sync_listen_notifications.cc
index 5a832c2..e7eb13d 100644
--- a/sync/tools/sync_listen_notifications.cc
+++ b/sync/tools/sync_listen_notifications.cc
@@ -101,14 +101,14 @@ class NullInvalidationStateTracker
}
}
- virtual std::string GetInvalidationState() const OVERRIDE {
+ virtual std::string GetBootstrapData() const OVERRIDE {
return std::string();
}
- virtual void SetInvalidationState(const std::string& state) OVERRIDE {
- std::string base64_state;
- CHECK(base::Base64Encode(state, &base64_state));
- LOG(INFO) << "Setting invalidation state to: " << base64_state;
+ virtual void SetBootstrapData(const std::string& data) OVERRIDE {
+ std::string base64_data;
+ CHECK(base::Base64Encode(data, &base64_data));
+ LOG(INFO) << "Setting bootstrap data to: " << base64_data;
}
};