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

Unified Diff: components/plugins/renderer/loadable_plugin_placeholder.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
« no previous file with comments | « chrome/test/data/plugin_power_saver/block_tiny_plugins.html ('k') | content/public/renderer/render_frame.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/plugins/renderer/loadable_plugin_placeholder.cc
diff --git a/components/plugins/renderer/loadable_plugin_placeholder.cc b/components/plugins/renderer/loadable_plugin_placeholder.cc
index 4f1303cbfa1456d732b629b572843ac6ee1ee31c..c7ac35ba7e56ffd9b565a8e3c292a43463c18f60 100644
--- a/components/plugins/renderer/loadable_plugin_placeholder.cc
+++ b/components/plugins/renderer/loadable_plugin_placeholder.cc
@@ -213,7 +213,8 @@ void LoadablePluginPlaceholder::OnUnobscuredRectUpdate(
// Early exit for plugins that we've discovered to be essential.
if (!plugin_is_tiny_and_blocked &&
- status != RenderFrame::CONTENT_STATUS_PERIPHERAL) {
+ status != RenderFrame::CONTENT_STATUS_PERIPHERAL &&
+ status != RenderFrame::CONTENT_STATUS_TINY) {
MarkPluginEssential(
heuristic_run_before_
? PluginInstanceThrottler::UNTHROTTLE_METHOD_BY_SIZE_CHANGE
« no previous file with comments | « chrome/test/data/plugin_power_saver/block_tiny_plugins.html ('k') | content/public/renderer/render_frame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698