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

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

Issue 1088763002: Plugin Power Saver: Add comprehensive browser tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@0260-plugins-overhaul-prerender-tests
Patch Set: Created 5 years, 8 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_instance_throttler_impl.cc
diff --git a/content/renderer/pepper/plugin_instance_throttler_impl.cc b/content/renderer/pepper/plugin_instance_throttler_impl.cc
index a79201cb56ccab90324a9ee5be93d81af476270a..c8db56f95169fcd63b24e7f4db78913e458fa4fc 100644
--- a/content/renderer/pepper/plugin_instance_throttler_impl.cc
+++ b/content/renderer/pepper/plugin_instance_throttler_impl.cc
@@ -135,6 +135,7 @@ void PluginInstanceThrottlerImpl::Initialize(
if (frame) {
PluginPowerSaverHelper* helper = frame->plugin_power_saver_helper();
bool cross_origin_main_content = false;
+
if (!helper->ShouldThrottleContent(content_origin, plugin_module_name,
unobscured_size.width(),
unobscured_size.height(),

Powered by Google App Engine
This is Rietveld 408576698