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

Side by Side Diff: chrome/renderer/plugins/plugin_uma.cc

Issue 630603003: Replacing the OVERRIDE with override in chrome/renderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased the patch Created 6 years, 2 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
« no previous file with comments | « chrome/renderer/plugins/chrome_plugin_placeholder.h ('k') | chrome/renderer/prefetch_helper.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/plugins/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"
(...skipping 20 matching lines...) Expand all
31 const char* kQuickTimeExtensions[] = {".moov", ".mov", ".qif", 31 const char* kQuickTimeExtensions[] = {".moov", ".mov", ".qif",
32 ".qt", ".qti", ".qtif"}; 32 ".qt", ".qti", ".qtif"};
33 33
34 const char* kShockwaveFlashExtensions[] = {".spl", ".swf"}; 34 const char* kShockwaveFlashExtensions[] = {".spl", ".swf"};
35 35
36 } // namespace. 36 } // namespace.
37 37
38 class UMASenderImpl : public PluginUMAReporter::UMASender { 38 class UMASenderImpl : public PluginUMAReporter::UMASender {
39 virtual void SendPluginUMA( 39 virtual void SendPluginUMA(
40 PluginUMAReporter::ReportType report_type, 40 PluginUMAReporter::ReportType report_type,
41 PluginUMAReporter::PluginType plugin_type) OVERRIDE; 41 PluginUMAReporter::PluginType plugin_type) override;
42 }; 42 };
43 43
44 void UMASenderImpl::SendPluginUMA(PluginUMAReporter::ReportType report_type, 44 void UMASenderImpl::SendPluginUMA(PluginUMAReporter::ReportType report_type,
45 PluginUMAReporter::PluginType plugin_type) { 45 PluginUMAReporter::PluginType plugin_type) {
46 // UMA_HISTOGRAM_ENUMERATION requires constant histogram name. Use string 46 // UMA_HISTOGRAM_ENUMERATION requires constant histogram name. Use string
47 // constants explicitly instead of trying to use variables for names. 47 // constants explicitly instead of trying to use variables for names.
48 switch (report_type) { 48 switch (report_type) {
49 case PluginUMAReporter::MISSING_PLUGIN: 49 case PluginUMAReporter::MISSING_PLUGIN:
50 UMA_HISTOGRAM_ENUMERATION("Plugin.MissingPlugins", 50 UMA_HISTOGRAM_ENUMERATION("Plugin.MissingPlugins",
51 plugin_type, 51 plugin_type,
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 return SHOCKWAVE_FLASH; 179 return SHOCKWAVE_FLASH;
180 } 180 }
181 181
182 #if defined(ENABLE_PEPPER_CDMS) 182 #if defined(ENABLE_PEPPER_CDMS)
183 if (mime_type == kWidevineCdmPluginMimeType) 183 if (mime_type == kWidevineCdmPluginMimeType)
184 return WIDEVINE_CDM; 184 return WIDEVINE_CDM;
185 #endif 185 #endif
186 186
187 return UNSUPPORTED_MIMETYPE; 187 return UNSUPPORTED_MIMETYPE;
188 } 188 }
OLDNEW
« no previous file with comments | « chrome/renderer/plugins/chrome_plugin_placeholder.h ('k') | chrome/renderer/prefetch_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698