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

Unified Diff: content/renderer/media/webrtc_uma_histograms.cc

Issue 1371933005: MediaStream Recorder: add usage counter to WebRTC.webkitApiCount UMA (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: typo Created 5 years, 3 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 | « content/renderer/media/webrtc_uma_histograms.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/webrtc_uma_histograms.cc
diff --git a/content/renderer/media/webrtc_uma_histograms.cc b/content/renderer/media/webrtc_uma_histograms.cc
index 616ff91251405a4914ea8737e0914b9743cce057..a7116960357c1500304b563f1c9da82d70fb8ce4 100644
--- a/content/renderer/media/webrtc_uma_histograms.cc
+++ b/content/renderer/media/webrtc_uma_histograms.cc
@@ -64,8 +64,8 @@ void PerSessionWebRTCAPIMetrics::LogUsageOnlyOnce(JavaScriptAPIName api_name) {
}
void PerSessionWebRTCAPIMetrics::ResetUsage() {
- for (size_t i = 0; i < arraysize(has_used_api_); ++i)
- has_used_api_[i] = false;
+ for (bool& has_used_api : has_used_api_)
+ has_used_api = false;
}
} // namespace content
« no previous file with comments | « content/renderer/media/webrtc_uma_histograms.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698