OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "media/base/key_systems_support_uma.h" | 5 #include "media/base/key_systems_support_uma.h" |
6 | 6 |
7 | |
8 #include "base/metrics/histogram.h" | 7 #include "base/metrics/histogram.h" |
9 #include "media/base/key_systems.h" | 8 #include "media/base/key_systems.h" |
10 | 9 |
11 namespace media { | 10 namespace media { |
12 | 11 |
13 namespace { | 12 namespace { |
14 | 13 |
15 const char kKeySystemSupportUMAPrefix[] = "Media.EME.KeySystemSupport."; | 14 const char kKeySystemSupportUMAPrefix[] = "Media.EME.KeySystemSupport."; |
16 | 15 |
17 // These values are reported to UMA. Do not change the existing values! | 16 // These values are reported to UMA. Do not change the existing values! |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 | 124 |
126 KeySystemsSupportUMA::Reporter* KeySystemsSupportUMA::GetReporter( | 125 KeySystemsSupportUMA::Reporter* KeySystemsSupportUMA::GetReporter( |
127 const std::string& key_system) { | 126 const std::string& key_system) { |
128 Reporters::iterator reporter = reporters_.find(key_system); | 127 Reporters::iterator reporter = reporters_.find(key_system); |
129 if (reporter == reporters_.end()) | 128 if (reporter == reporters_.end()) |
130 return NULL; | 129 return NULL; |
131 return reporter->second; | 130 return reporter->second; |
132 } | 131 } |
133 | 132 |
134 } // namespace media | 133 } // namespace media |
OLD | NEW |