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

Unified Diff: content/renderer/peripheral_content_heuristic.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
Index: content/renderer/peripheral_content_heuristic.cc
diff --git a/content/renderer/peripheral_content_heuristic.cc b/content/renderer/peripheral_content_heuristic.cc
index 3b36af811c11e192958e4124d67c6c45df9c4f86..e6cbcce45b493d04ed718d643a05cbad9980fdcd 100644
--- a/content/renderer/peripheral_content_heuristic.cc
+++ b/content/renderer/peripheral_content_heuristic.cc
@@ -45,11 +45,11 @@ PeripheralContentHeuristic::GetPeripheralStatus(
return RenderFrame::CONTENT_STATUS_ESSENTIAL_CROSS_ORIGIN_WHITELISTED;
if (unobscured_size.IsEmpty())
- return RenderFrame::CONTENT_STATUS_ESSENTIAL_UNKNOWN_SIZE;
+ return RenderFrame::CONTENT_STATUS_UNKNOWN_SIZE;
if (unobscured_size.width() <= kTinyContentSize &&
unobscured_size.height() <= kTinyContentSize) {
- return RenderFrame::CONTENT_STATUS_ESSENTIAL_CROSS_ORIGIN_TINY;
+ return RenderFrame::CONTENT_STATUS_TINY;
}
if (IsLargeContent(unobscured_size))
« no previous file with comments | « content/renderer/pepper/plugin_power_saver_helper.cc ('k') | content/renderer/peripheral_content_heuristic_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698