Index: components/gcm_driver/gcm_stats_recorder_impl.cc |
diff --git a/components/gcm_driver/gcm_stats_recorder_impl.cc b/components/gcm_driver/gcm_stats_recorder_impl.cc |
index 803e6baff0c2adbac480c48957c234375f58f408..d632bd397f50bf5b9649c0c7336a6032cccce4e0 100644 |
--- a/components/gcm_driver/gcm_stats_recorder_impl.cc |
+++ b/components/gcm_driver/gcm_stats_recorder_impl.cc |
@@ -173,7 +173,9 @@ void GCMStatsRecorderImpl::NotifyActivityRecorded() { |
void GCMStatsRecorderImpl::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; |
@@ -182,7 +184,7 @@ void GCMStatsRecorderImpl::RecordDecryptionFailure( |
&decryption_failure_activities_, data); |
inserted_data->app_id = app_id; |
inserted_data->details = |
- GCMEncryptionProvider::ToDecryptionFailureDetailsString(reason); |
+ GCMEncryptionProvider::ToDecryptionResultDetailsString(result); |
NotifyActivityRecorded(); |
} |