| 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 "components/gcm_driver/gcm_driver_desktop.h" | 5 #include "components/gcm_driver/gcm_driver_desktop.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 void GCMDriverDesktop::IOWorker::OnUnregisterFinished( | 194 void GCMDriverDesktop::IOWorker::OnUnregisterFinished( |
| 195 const linked_ptr<RegistrationInfo>& registration_info, | 195 const linked_ptr<RegistrationInfo>& registration_info, |
| 196 GCMClient::Result result) { | 196 GCMClient::Result result) { |
| 197 DCHECK(io_thread_->RunsTasksOnCurrentThread()); | 197 DCHECK(io_thread_->RunsTasksOnCurrentThread()); |
| 198 | 198 |
| 199 const GCMRegistrationInfo* gcm_registration_info = | 199 const GCMRegistrationInfo* gcm_registration_info = |
| 200 GCMRegistrationInfo::FromRegistrationInfo(registration_info.get()); | 200 GCMRegistrationInfo::FromRegistrationInfo(registration_info.get()); |
| 201 if (gcm_registration_info) { | 201 if (gcm_registration_info) { |
| 202 ui_thread_->PostTask( | 202 ui_thread_->PostTask( |
| 203 FROM_HERE, | 203 FROM_HERE, |
| 204 base::Bind(&GCMDriverDesktop::UnregisterFinished, | 204 base::Bind(&GCMDriverDesktop::UnregisterRemoveEncryptionInfo, |
| 205 service_, | 205 service_, |
| 206 gcm_registration_info->app_id, | 206 gcm_registration_info->app_id, |
| 207 result)); | 207 result)); |
| 208 } | 208 } |
| 209 | 209 |
| 210 const InstanceIDTokenInfo* instance_id_token_info = | 210 const InstanceIDTokenInfo* instance_id_token_info = |
| 211 InstanceIDTokenInfo::FromRegistrationInfo(registration_info.get()); | 211 InstanceIDTokenInfo::FromRegistrationInfo(registration_info.get()); |
| 212 if (instance_id_token_info) { | 212 if (instance_id_token_info) { |
| 213 ui_thread_->PostTask( | 213 ui_thread_->PostTask( |
| 214 FROM_HERE, | 214 FROM_HERE, |
| (...skipping 1107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1322 | 1322 |
| 1323 if (base::get<1>(a) < base::get<1>(b)) | 1323 if (base::get<1>(a) < base::get<1>(b)) |
| 1324 return true; | 1324 return true; |
| 1325 if (base::get<1>(a) > base::get<1>(b)) | 1325 if (base::get<1>(a) > base::get<1>(b)) |
| 1326 return false; | 1326 return false; |
| 1327 | 1327 |
| 1328 return base::get<2>(a) < base::get<2>(b); | 1328 return base::get<2>(a) < base::get<2>(b); |
| 1329 } | 1329 } |
| 1330 | 1330 |
| 1331 } // namespace gcm | 1331 } // namespace gcm |
| OLD | NEW |