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

Unified Diff: components/gcm_driver/instance_id/instance_id_impl.cc

Issue 1899753002: Make InstanceIDBridge fully async to fix strict mode violations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@iid3test
Patch Set: Fix DeleteID use after free Created 4 years, 8 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/instance_id/instance_id_impl.cc
diff --git a/components/gcm_driver/instance_id/instance_id_impl.cc b/components/gcm_driver/instance_id/instance_id_impl.cc
index f7e50141c0cfeeea07d5cff11240f0bef54d72e0..85070b284c30bd8fe4a65d1832e0006eb2dcc274 100644
--- a/components/gcm_driver/instance_id/instance_id_impl.cc
+++ b/components/gcm_driver/instance_id/instance_id_impl.cc
@@ -211,6 +211,7 @@ void InstanceIDImpl::OnDeleteIDCompleted(
const DeleteIDCallback& callback,
gcm::GCMClient::Result result) {
callback.Run(GCMClientResultToInstanceIDResult(result));
+ // Now |this| will likely have been deleted.
}
void InstanceIDImpl::GetInstanceIDDataCompleted(

Powered by Google App Engine
This is Rietveld 408576698