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

Unified Diff: components/gcm_driver/gcm_stats_recorder_android.cc

Issue 1627723002: Revert of List message decryption failures on chrome://gcm-internals (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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: components/gcm_driver/gcm_stats_recorder_android.cc
diff --git a/components/gcm_driver/gcm_stats_recorder_android.cc b/components/gcm_driver/gcm_stats_recorder_android.cc
index 918638b5c1fe704300dba5a43d6a2d1625628ce6..3e2d1ca1bda0fadfb533e4377705b7cac8fe13ad 100644
--- a/components/gcm_driver/gcm_stats_recorder_android.cc
+++ b/components/gcm_driver/gcm_stats_recorder_android.cc
@@ -25,7 +25,6 @@
void GCMStatsRecorderAndroid::Clear() {
registration_activities_.clear();
receiving_activities_.clear();
- decryption_failure_activities_.clear();
}
void GCMStatsRecorderAndroid::CollectActivities(
@@ -40,10 +39,6 @@
recorded_activities->receiving_activities.begin(),
receiving_activities_.begin(),
receiving_activities_.end());
- recorded_activities->decryption_failure_activities.insert(
- recorded_activities->decryption_failure_activities.begin(),
- decryption_failure_activities_.begin(),
- decryption_failure_activities_.end());
}
void GCMStatsRecorderAndroid::RecordRegistrationSent(
@@ -121,23 +116,4 @@
delegate_->OnActivityRecorded();
}
-void GCMStatsRecorderAndroid::RecordDecryptionFailure(
- const std::string& app_id,
- GCMEncryptionProvider::DecryptionFailure reason) {
- if (!is_recording_)
- return;
-
- DecryptionFailureActivity activity;
- activity.app_id = app_id;
- activity.details =
- GCMEncryptionProvider::ToDecryptionFailureDetailsString(reason);
-
- decryption_failure_activities_.push_front(activity);
- if (decryption_failure_activities_.size() > MAX_LOGGED_ACTIVITY_COUNT)
- decryption_failure_activities_.pop_back();
-
- if (delegate_)
- delegate_->OnActivityRecorded();
-}
-
} // namespace gcm
« no previous file with comments | « components/gcm_driver/gcm_stats_recorder_android.h ('k') | components/gcm_driver/gcm_stats_recorder_android_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698