| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "google_apis/gcm/engine/gcm_store.h" | 5 #include "google_apis/gcm/engine/gcm_store.h" |
| 6 | 6 |
| 7 namespace gcm { | 7 namespace gcm { |
| 8 | 8 |
| 9 GCMStore::LoadResult::LoadResult() | 9 GCMStore::LoadResult::LoadResult() |
| 10 : success(false), | 10 : success(false), |
| 11 device_android_id(0), | 11 device_android_id(0), |
| 12 device_security_token(0) { | 12 device_security_token(0) { |
| 13 } | 13 } |
| 14 | 14 |
| 15 GCMStore::LoadResult::~LoadResult() {} | 15 GCMStore::LoadResult::~LoadResult() {} |
| 16 | 16 |
| 17 void GCMStore::LoadResult::Reset() { |
| 18 device_android_id = 0; |
| 19 device_security_token = 0; |
| 20 registrations.clear(); |
| 21 incoming_messages.clear(); |
| 22 outgoing_messages.clear(); |
| 23 gservices_settings.clear(); |
| 24 gservices_digest.clear(); |
| 25 last_checkin_time = base::Time::FromInternalValue(0LL); |
| 26 last_checkin_accounts.clear(); |
| 27 account_infos.clear(); |
| 28 success = false; |
| 29 } |
| 30 |
| 17 GCMStore::GCMStore() {} | 31 GCMStore::GCMStore() {} |
| 18 | 32 |
| 19 GCMStore::~GCMStore() {} | 33 GCMStore::~GCMStore() {} |
| 20 | 34 |
| 21 } // namespace gcm | 35 } // namespace gcm |
| OLD | NEW |