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

Unified Diff: google_apis/gcm/monitoring/gcm_stats_recorder.cc

Issue 273753005: Revert of 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
« no previous file with comments | « google_apis/gcm/monitoring/gcm_stats_recorder.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: google_apis/gcm/monitoring/gcm_stats_recorder.cc
diff --git a/google_apis/gcm/monitoring/gcm_stats_recorder.cc b/google_apis/gcm/monitoring/gcm_stats_recorder.cc
index 8d1d2aa3145439b09733c3158c17f038bdb5a932..649720f1c395f9c27171dce791c53d377b09467c 100644
--- a/google_apis/gcm/monitoring/gcm_stats_recorder.cc
+++ b/google_apis/gcm/monitoring/gcm_stats_recorder.cc
@@ -184,7 +184,7 @@
GCMStatsRecorder::RecordedActivities::~RecordedActivities() {
}
-GCMStatsRecorder::GCMStatsRecorder() : is_recording_(false), delegate_(NULL) {
+GCMStatsRecorder::GCMStatsRecorder() : is_recording_(false) {
}
GCMStatsRecorder::~GCMStatsRecorder() {
@@ -192,10 +192,6 @@
void GCMStatsRecorder::SetRecording(bool recording) {
is_recording_ = recording;
-}
-
-void GCMStatsRecorder::SetDelegate(Delegate* delegate) {
- delegate_ = delegate;
}
void GCMStatsRecorder::Clear() {
@@ -204,11 +200,6 @@
registration_activities_.clear();
receiving_activities_.clear();
sending_activities_.clear();
-}
-
-void GCMStatsRecorder::NotifyActivityRecorded() {
- if (delegate_)
- delegate_->OnActivityRecorded();
}
void GCMStatsRecorder::RecordCheckin(
@@ -219,7 +210,6 @@
&checkin_activities_, data);
inserted_data->event = event;
inserted_data->details = details;
- NotifyActivityRecorded();
}
void GCMStatsRecorder::RecordCheckinInitiated(uint64 android_id) {
@@ -261,7 +251,6 @@
&connection_activities_, data);
inserted_data->event = event;
inserted_data->details = details;
- NotifyActivityRecorded();
}
void GCMStatsRecorder::RecordConnectionInitiated(const std::string& host) {
@@ -311,7 +300,6 @@
inserted_data->sender_ids = sender_ids;
inserted_data->event = event;
inserted_data->details = details;
- NotifyActivityRecorded();
}
void GCMStatsRecorder::RecordRegistrationSent(
@@ -390,7 +378,6 @@
inserted_data->message_byte_size = message_byte_size;
inserted_data->event = event;
inserted_data->details = details;
- NotifyActivityRecorded();
}
void GCMStatsRecorder::RecordDataMessageReceived(
@@ -460,7 +447,6 @@
inserted_data->message_id = message_id;
inserted_data->event = event;
inserted_data->details = details;
- NotifyActivityRecorded();
}
void GCMStatsRecorder::RecordDataSentToWire(
« no previous file with comments | « google_apis/gcm/monitoring/gcm_stats_recorder.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698