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

Unified Diff: components/gcm_driver/fake_gcm_client.h

Issue 617003005: Keep the GCM data intact when the user signs out of the profile (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: components/gcm_driver/fake_gcm_client.h
diff --git a/components/gcm_driver/fake_gcm_client.h b/components/gcm_driver/fake_gcm_client.h
index 649e74e739e1cd2d4c421456d0e50162e1f8c00b..fa91bbcb3f5ef7a71ea22dbd0b15a85ba39c4b0f 100644
--- a/components/gcm_driver/fake_gcm_client.h
+++ b/components/gcm_driver/fake_gcm_client.h
@@ -72,8 +72,8 @@ class FakeGCMClient : public GCMClient {
const IncomingMessage& message);
void DeleteMessages(const std::string& app_id);
- static std::string GetRegistrationIdFromSenderIds(
- const std::vector<std::string>& sender_ids);
+ std::string GetRegistrationIdFromSenderIds(
+ const std::vector<std::string>& sender_ids) const;
Status status() const { return status_; }
@@ -94,6 +94,9 @@ class FakeGCMClient : public GCMClient {
const std::string& message_id);
Delegate* delegate_;
+ // Increased at checkout in order to produce a different registration ID
+ // after checkout and re-checkin.
+ int sequence_id_;
Status status_;
StartMode start_mode_;
scoped_refptr<base::SequencedTaskRunner> ui_thread_;
« no previous file with comments | « chrome/browser/services/gcm/gcm_profile_service_unittest.cc ('k') | components/gcm_driver/fake_gcm_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698