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

Unified Diff: google_apis/gcm/engine/mcs_client.cc

Issue 745123002: Link GCM heartbeat with wake on wifi preference (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Clean up includes Created 6 years 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: google_apis/gcm/engine/mcs_client.cc
diff --git a/google_apis/gcm/engine/mcs_client.cc b/google_apis/gcm/engine/mcs_client.cc
index 01512cb36918bd5dc4703a6920b053444fb7ca7c..3f81377d88a2464d0063fafc74fe98ca10fef44c 100644
--- a/google_apis/gcm/engine/mcs_client.cc
+++ b/google_apis/gcm/engine/mcs_client.cc
@@ -368,6 +368,10 @@ void MCSClient::SendMessage(const MCSMessage& message) {
MaybeSendMessage();
}
+void MCSClient::UpdateHeartbeatTimer(scoped_ptr<base::Timer> timer) {
+ heartbeat_manager_.UpdateHeartbeatTimer(timer.Pass());
+}
+
void MCSClient::ResetStateAndBuildLoginRequest(
mcs_proto::LoginRequest* request) {
DCHECK(android_id_);
« components/gcm_driver/gcm_driver_desktop.cc ('K') | « google_apis/gcm/engine/mcs_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698