Chromium Code Reviews| 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 2891980fe7f49c4afeeeaf95401667698a6f4155..be63331681d127f2e57ea68aa853ea5f2a721583 100644 |
| --- a/content/renderer/pepper/plugin_power_saver_helper.cc |
| +++ b/content/renderer/pepper/plugin_power_saver_helper.cc |
| @@ -9,6 +9,8 @@ |
| #include "content/common/frame_messages.h" |
| #include "content/public/common/content_constants.h" |
| #include "content/public/renderer/render_frame.h" |
| +#include "content/public/test/ppapi_test_utils.h" |
|
raymes
2015/04/17 01:13:44
nit: is this needed?
tommycli
2015/04/17 23:45:32
Done.
|
| +#include "ppapi/shared_impl/ppapi_constants.h" |
| #include "third_party/WebKit/public/web/WebDocument.h" |
| #include "third_party/WebKit/public/web/WebLocalFrame.h" |
| #include "third_party/WebKit/public/web/WebPluginParams.h" |
| @@ -121,8 +123,11 @@ bool PluginPowerSaverHelper::ShouldThrottleContent( |
| *cross_origin_main_content = false; |
| // This feature has only been tested throughly with Flash thus far. |
| - if (plugin_module_name != content::kFlashPluginName) |
| + // It is also enabled for the PPAPI test library for browser tests. |
| + if (plugin_module_name != content::kFlashPluginName && |
| + plugin_module_name != ppapi::kPpapiTestLibraryName) { |
| return false; |
| + } |
| if (width <= 0 || height <= 0) |
| return false; |