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

Unified Diff: components/gcm_driver/gcm_stats_recorder_android.cc

Issue 1707513002: Add various UMA histograms for measuring GCM crypto performance (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gcm-remove-info
Patch Set: android fix Created 4 years, 10 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..6a6b09fd8934f26f920b707f24bb3927fd647ce5 100644
--- a/components/gcm_driver/gcm_stats_recorder_android.cc
+++ b/components/gcm_driver/gcm_stats_recorder_android.cc
@@ -123,14 +123,16 @@ void GCMStatsRecorderAndroid::RecordDataMessageReceived(
void GCMStatsRecorderAndroid::RecordDecryptionFailure(
const std::string& app_id,
- GCMEncryptionProvider::DecryptionFailure reason) {
+ GCMEncryptionProvider::DecryptionResult result) {
+ DCHECK_NE(result, GCMEncryptionProvider::DECRYPTION_RESULT_UNENCRYPTED);
+ DCHECK_NE(result, GCMEncryptionProvider::DECRYPTION_RESULT_DECRYPTED);
if (!is_recording_)
return;
DecryptionFailureActivity activity;
activity.app_id = app_id;
activity.details =
- GCMEncryptionProvider::ToDecryptionFailureDetailsString(reason);
+ GCMEncryptionProvider::ToDecryptionResultDetailsString(result);
decryption_failure_activities_.push_front(activity);
if (decryption_failure_activities_.size() > MAX_LOGGED_ACTIVITY_COUNT)
« 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