| Index: google_apis/gcm/gcm_client_impl.cc
|
| diff --git a/google_apis/gcm/gcm_client_impl.cc b/google_apis/gcm/gcm_client_impl.cc
|
| index 20fc976c05336dab43d72027908b4219b439badb..14a94687a923d5672cf583caf1aefd8a94183a86 100644
|
| --- a/google_apis/gcm/gcm_client_impl.cc
|
| +++ b/google_apis/gcm/gcm_client_impl.cc
|
| @@ -271,8 +271,12 @@ void GCMClientImpl::SetDeviceCredentialsCallback(bool success) {
|
| }
|
|
|
| void GCMClientImpl::CheckOut() {
|
| - // TODO(jianli): to be implemented.
|
| delegate_ = NULL;
|
| + device_checkin_info_.Reset();
|
| + mcs_client_->Destroy(); // This will also destroy GCM store.
|
| + mcs_client_.reset();
|
| + checkin_request_.reset();
|
| + pending_registrations_.clear();
|
| }
|
|
|
| void GCMClientImpl::Register(const std::string& app_id,
|
|
|