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

Unified Diff: components/gcm_driver/gcm_driver_android.cc

Issue 2578583002: Provide a mechanism for the GCM driver to send message receipts to GCM.
Patch Set: Fix issue with rebase Created 3 years, 10 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 | « components/gcm_driver/gcm_driver_android.h ('k') | components/gcm_driver/gcm_driver_desktop.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/gcm_driver/gcm_driver_android.cc
diff --git a/components/gcm_driver/gcm_driver_android.cc b/components/gcm_driver/gcm_driver_android.cc
index a512e8248d9a045c091c9c2440ec80577d1b26d8..4aaf9ca003d21d2edcd41c685753ef64db492f02 100644
--- a/components/gcm_driver/gcm_driver_android.cc
+++ b/components/gcm_driver/gcm_driver_android.cc
@@ -109,7 +109,13 @@ void GCMDriverAndroid::OnMessageReceived(
recorder_.RecordDataMessageReceived(app_id, message.sender_id,
message_byte_size);
- DispatchMessage(app_id, message);
+ DispatchMessage(app_id, message,
+ base::Bind(&GCMDriverAndroid::SendMessageReceipt,
+ weak_ptr_factory_.GetWeakPtr()));
+}
+
+void GCMDriverAndroid::SendMessageReceipt(GCMMessageStatus status) {
+ // TODO(harkness) Implement message receipts in android. crbug.com/674131.
}
// static
« no previous file with comments | « components/gcm_driver/gcm_driver_android.h ('k') | components/gcm_driver/gcm_driver_desktop.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698