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

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

Issue 2765633002: Plugin Power Saver Tiny: Treat completely obscured plugins as Tiny. (Closed)
Patch Set: Created 3 years, 9 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
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 21f69cd30b290e8a5feec3406e70a03f0cacbaef..a2731bb2108f390820ef17b1ac82353af8ddc151 100644
--- a/content/renderer/pepper/plugin_power_saver_helper.cc
+++ b/content/renderer/pepper/plugin_power_saver_helper.cc
@@ -112,9 +112,7 @@ PluginPowerSaverHelper::GetPeripheralContentStatus(
auto status = PeripheralContentHeuristic::GetPeripheralStatus(
origin_whitelist_, main_frame_origin, content_origin, unobscured_size);
- // Never record UNKNOWN_SIZE. Wait for retest after size is known.
- if (record_decision == RenderFrame::RECORD_DECISION &&
- status != RenderFrame::CONTENT_STATUS_UNKNOWN_SIZE) {
+ if (record_decision == RenderFrame::RECORD_DECISION) {
UMA_HISTOGRAM_ENUMERATION(kPeripheralHeuristicHistogram, status,
RenderFrame::CONTENT_STATUS_NUM_ITEMS);
}
« no previous file with comments | « content/renderer/pepper/plugin_instance_throttler_impl.cc ('k') | content/renderer/peripheral_content_heuristic.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698