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

Unified Diff: content/renderer/pepper/plugin_power_saver_helper.cc

Issue 2627513002: Plugin Power Saver: Refactor some Tiny plugin code and tests. (Closed)
Patch Set: Also update histograms.xml Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/public/renderer/render_frame.h ('k') | content/renderer/peripheral_content_heuristic.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/pepper/plugin_power_saver_helper.cc
diff --git a/content/renderer/pepper/plugin_power_saver_helper.cc b/content/renderer/pepper/plugin_power_saver_helper.cc
index 6776f46b207fa6cb1abd5d69f2a968d277ca2a37..21f69cd30b290e8a5feec3406e70a03f0cacbaef 100644
--- a/content/renderer/pepper/plugin_power_saver_helper.cc
+++ b/content/renderer/pepper/plugin_power_saver_helper.cc
@@ -112,9 +112,9 @@ PluginPowerSaverHelper::GetPeripheralContentStatus(
auto status = PeripheralContentHeuristic::GetPeripheralStatus(
origin_whitelist_, main_frame_origin, content_origin, unobscured_size);
- // Never record ESSENTIAL_UNKNOWN_SIZE. Wait for retest after size is known.
+ // Never record UNKNOWN_SIZE. Wait for retest after size is known.
if (record_decision == RenderFrame::RECORD_DECISION &&
- status != RenderFrame::CONTENT_STATUS_ESSENTIAL_UNKNOWN_SIZE) {
+ status != RenderFrame::CONTENT_STATUS_UNKNOWN_SIZE) {
UMA_HISTOGRAM_ENUMERATION(kPeripheralHeuristicHistogram, status,
RenderFrame::CONTENT_STATUS_NUM_ITEMS);
}
« no previous file with comments | « content/public/renderer/render_frame.h ('k') | content/renderer/peripheral_content_heuristic.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698