OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "chrome/renderer/plugin_uma.h" | 5 #include "chrome/renderer/plugins/plugin_uma.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <cstring> | 8 #include <cstring> |
9 | 9 |
10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
11 #include "base/string_util.h" | 11 #include "base/string_util.h" |
12 | 12 |
13 namespace { | 13 namespace { |
14 | 14 |
15 // String we will use to convert mime tyoe to plugin type. | 15 // String we will use to convert mime tyoe to plugin type. |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 | 155 |
156 if (strstr(mime_type.c_str(), kJavaTypeSubstring)) | 156 if (strstr(mime_type.c_str(), kJavaTypeSubstring)) |
157 return JAVA; | 157 return JAVA; |
158 | 158 |
159 if (strcmp(mime_type.c_str(), kQuickTimeType) == 0) | 159 if (strcmp(mime_type.c_str(), kQuickTimeType) == 0) |
160 return QUICKTIME; | 160 return QUICKTIME; |
161 | 161 |
162 return OTHER; | 162 return OTHER; |
163 } | 163 } |
164 | 164 |
OLD | NEW |