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..9b5dc6e940ba5139c58b266bad8a24db191ee849 100644 |
--- a/google_apis/gcm/engine/mcs_client.cc |
+++ b/google_apis/gcm/engine/mcs_client.cc |
@@ -159,8 +159,7 @@ MCSClient::MCSClient(const std::string& version_string, |
base::Clock* clock, |
ConnectionFactory* connection_factory, |
GCMStore* gcm_store, |
- GCMStatsRecorder* recorder, |
- scoped_ptr<base::Timer> heartbeat_timer) |
+ GCMStatsRecorder* recorder) |
: version_string_(version_string), |
clock_(clock), |
state_(UNINITIALIZED), |
@@ -173,7 +172,6 @@ MCSClient::MCSClient(const std::string& version_string, |
stream_id_out_(0), |
stream_id_in_(0), |
gcm_store_(gcm_store), |
- heartbeat_manager_(heartbeat_timer.Pass()), |
recorder_(recorder), |
weak_ptr_factory_(this) { |
} |
@@ -368,6 +366,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_); |