Index: content/public/renderer/plugin_instance_throttler.cc |
diff --git a/content/public/renderer/plugin_instance_throttler.cc b/content/public/renderer/plugin_instance_throttler.cc |
index 8fde88a5b8616e7bb11969082ed701179e725f9a..7a01f0e1c0c6ec53ab736e22b016da443a29abef 100644 |
--- a/content/public/renderer/plugin_instance_throttler.cc |
+++ b/content/public/renderer/plugin_instance_throttler.cc |
@@ -4,10 +4,16 @@ |
#include "content/public/renderer/plugin_instance_throttler.h" |
+#include "base/metrics/histogram.h" |
#include "content/renderer/pepper/plugin_instance_throttler_impl.h" |
namespace content { |
+namespace { |
+ |
+const char kPowerSaverUnthrottleHistogram[] = "Plugin.PowerSaver.Unthrottle"; |
Bernhard Bauer
2015/01/23 11:24:59
Add an empty line after this one? Alternatively, t
tommycli
2015/01/23 18:05:59
Done.
|
+} |
+ |
// static |
scoped_ptr<PluginInstanceThrottler> PluginInstanceThrottler::Get( |
RenderFrame* frame, |
@@ -23,4 +29,12 @@ scoped_ptr<PluginInstanceThrottler> PluginInstanceThrottler::Get( |
new PluginInstanceThrottlerImpl(frame, plugin_url, power_saver_enabled)); |
} |
+// static |
+void PluginInstanceThrottler::RecordUnthrottleMethodMetric( |
+ PluginInstanceThrottlerImpl::PowerSaverUnthrottleMethod method) { |
+ UMA_HISTOGRAM_ENUMERATION( |
+ kPowerSaverUnthrottleHistogram, method, |
+ PluginInstanceThrottler::UNTHROTTLE_METHOD_NUM_ITEMS); |
+} |
+ |
} // namespace content |
Bernhard Bauer
2015/01/23 11:24:59
Now that I look at this: The contents of this file
tommycli
2015/01/23 18:05:59
Done.
|