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

Unified Diff: google_apis/gcm/gcm_client_impl.cc

Issue 266913015: Enable auto-refreshing of the gcm-internals page whenever a GCM activity is recorded. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 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: google_apis/gcm/gcm_client_impl.cc
diff --git a/google_apis/gcm/gcm_client_impl.cc b/google_apis/gcm/gcm_client_impl.cc
index 5b027960d4dbed98472c7f2b5279afad3087e22f..deefe364623b516ae0ad1b4cbb0e9fbf19aa2808 100644
--- a/google_apis/gcm/gcm_client_impl.cc
+++ b/google_apis/gcm/gcm_client_impl.cc
@@ -198,6 +198,8 @@ void GCMClientImpl::Initialize(
delegate_ = delegate;
+ recorder_.SetDelegate(this);
+
state_ = INITIALIZED;
}
@@ -619,6 +621,10 @@ GCMClient::GCMStatistics GCMClientImpl::GetStatistics() const {
return stats;
}
+void GCMClientImpl::OnActivityRecorded() {
+ delegate_->OnActivityRecorded();
+}
+
void GCMClientImpl::OnMessageReceivedFromMCS(const gcm::MCSMessage& message) {
switch (message.tag()) {
case kLoginResponseTag:

Powered by Google App Engine
This is Rietveld 408576698