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

Side by Side Diff: content/renderer/media/webrtc_uma_histograms.cc

Issue 2303653005: Migrate content/ files to histogram_macros.h includes. (Closed)
Patch Set: Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/media/webrtc_uma_histograms.h" 5 #include "content/renderer/media/webrtc_uma_histograms.h"
6 6
7 #include "base/metrics/histogram.h" 7 #include "base/metrics/histogram_macros.h"
8 8
9 namespace content { 9 namespace content {
10 10
11 void LogUserMediaRequestWithNoResult(MediaStreamRequestState state) { 11 void LogUserMediaRequestWithNoResult(MediaStreamRequestState state) {
12 UMA_HISTOGRAM_ENUMERATION("WebRTC.UserMediaRequest.NoResultState", 12 UMA_HISTOGRAM_ENUMERATION("WebRTC.UserMediaRequest.NoResultState",
13 state, 13 state,
14 NUM_MEDIA_STREAM_REQUEST_WITH_NO_RESULT); 14 NUM_MEDIA_STREAM_REQUEST_WITH_NO_RESULT);
15 } 15 }
16 16
17 void LogUserMediaRequestResult(MediaStreamRequestResult result) { 17 void LogUserMediaRequestResult(MediaStreamRequestResult result) {
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 LogUsage(api_name); 62 LogUsage(api_name);
63 } 63 }
64 } 64 }
65 65
66 void PerSessionWebRTCAPIMetrics::ResetUsage() { 66 void PerSessionWebRTCAPIMetrics::ResetUsage() {
67 for (bool& has_used_api : has_used_api_) 67 for (bool& has_used_api : has_used_api_)
68 has_used_api = false; 68 has_used_api = false;
69 } 69 }
70 70
71 } // namespace content 71 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/media/webrtc_audio_renderer.cc ('k') | content/renderer/p2p/ipc_network_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698