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

Unified Diff: google_apis/gcm/engine/gcm_store.cc

Issue 429073002: [GCM] Persistence of account mappings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixing the gn build Created 6 years, 4 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
« no previous file with comments | « google_apis/gcm/engine/gcm_store.h ('k') | google_apis/gcm/engine/gcm_store_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: google_apis/gcm/engine/gcm_store.cc
diff --git a/google_apis/gcm/engine/gcm_store.cc b/google_apis/gcm/engine/gcm_store.cc
index 91ad60fe85245e422a3f9fecb86c7a2cb7ad5cf8..8a6bf3189b5136a07e46b3355e51675fd75ecd04 100644
--- a/google_apis/gcm/engine/gcm_store.cc
+++ b/google_apis/gcm/engine/gcm_store.cc
@@ -14,6 +14,20 @@ GCMStore::LoadResult::LoadResult()
GCMStore::LoadResult::~LoadResult() {}
+void GCMStore::LoadResult::Reset() {
+ device_android_id = 0;
+ device_security_token = 0;
+ registrations.clear();
+ incoming_messages.clear();
+ outgoing_messages.clear();
+ gservices_settings.clear();
+ gservices_digest.clear();
+ last_checkin_time = base::Time::FromInternalValue(0LL);
+ last_checkin_accounts.clear();
+ account_infos.clear();
+ success = false;
+}
+
GCMStore::GCMStore() {}
GCMStore::~GCMStore() {}
« no previous file with comments | « google_apis/gcm/engine/gcm_store.h ('k') | google_apis/gcm/engine/gcm_store_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698