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

Issue 707113002: Plugin Power Saver: Refactor Plugin Instance Throttling code (Closed)

Created:
6 years, 1 month ago by tommycli
Modified:
6 years, 1 month ago
Reviewers:
raymes
CC:
chromium-reviews, mkwst+moarreviews-renderer_chromium.org, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@0190-plugin-power-saver-add-some-umas
Project:
chromium
Visibility:
Public.

Description

Plugin Power Saver: Refactor Plugin Instance Throttling code Currently we are polluting the already-crowded PepperPluginInstanceImpl class. This patch moves a lot of the Power Saver code to its own class. BUG=403800 Committed: https://crrev.com/958f5e401524d8a31c5cf9228b3c9adace3d30ff Cr-Commit-Position: refs/heads/master@{#304066}

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Patch Set 3 : #

Total comments: 13

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Total comments: 8

Patch Set 7 : #

Total comments: 10

Patch Set 8 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+441 lines, -211 lines) Patch
M content/content_tests.gypi View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/pepper/pepper_plugin_instance_impl.h View 1 2 chunks +0 lines, -21 lines 0 comments Download
M content/renderer/pepper/pepper_plugin_instance_impl.cc View 1 2 3 4 5 12 chunks +10 lines, -168 lines 0 comments Download
M content/renderer/pepper/pepper_plugin_instance_throttler.h View 1 2 3 1 chunk +61 lines, -8 lines 0 comments Download
M content/renderer/pepper/pepper_plugin_instance_throttler.cc View 1 2 3 4 5 6 7 1 chunk +174 lines, -6 lines 0 comments Download
A content/renderer/pepper/pepper_plugin_instance_throttler_unittest.cc View 1 2 3 4 5 6 1 chunk +186 lines, -0 lines 0 comments Download
M content/renderer/pepper/plugin_power_saver_helper.h View 1 2 3 1 chunk +8 lines, -7 lines 0 comments Download

Messages

Total messages: 13 (2 generated)
raymes
Thanks for doing this! I haven't really reviewed properly but had one comment while skimming ...
6 years, 1 month ago (2014-11-10 02:34:20 UTC) #2
tommycli
raymes: let me know what you think. :) https://codereview.chromium.org/707113002/diff/1/content/renderer/pepper/pepper_plugin_instance_impl.cc File content/renderer/pepper/pepper_plugin_instance_impl.cc (right): https://codereview.chromium.org/707113002/diff/1/content/renderer/pepper/pepper_plugin_instance_impl.cc#newcode844 content/renderer/pepper/pepper_plugin_instance_impl.cc:844: this, ...
6 years, 1 month ago (2014-11-11 19:54:30 UTC) #3
raymes
Some initial comments, mainly on the test. https://codereview.chromium.org/707113002/diff/40001/content/renderer/pepper/pepper_plugin_instance_impl.cc File content/renderer/pepper/pepper_plugin_instance_impl.cc (right): https://codereview.chromium.org/707113002/diff/40001/content/renderer/pepper/pepper_plugin_instance_impl.cc#newcode1653 content/renderer/pepper/pepper_plugin_instance_impl.cc:1653: : view_data_; ...
6 years, 1 month ago (2014-11-12 06:38:20 UTC) #4
tommycli
raymes: I was able to take most of your suggestions. Hopefully this looks less janky ...
6 years, 1 month ago (2014-11-12 21:18:14 UTC) #5
raymes
Looks close. Just a few more suggestions. https://codereview.chromium.org/707113002/diff/100001/content/renderer/pepper/pepper_plugin_instance_throttler_unittest.cc File content/renderer/pepper/pepper_plugin_instance_throttler_unittest.cc (right): https://codereview.chromium.org/707113002/diff/100001/content/renderer/pepper/pepper_plugin_instance_throttler_unittest.cc#newcode70 content/renderer/pepper/pepper_plugin_instance_throttler_unittest.cc:70: throttler_->DisablePowerSaverByRetroactiveWhitelist(); You ...
6 years, 1 month ago (2014-11-13 00:05:16 UTC) #6
tommycli
raymes: Let me know what you think. Thanks! https://codereview.chromium.org/707113002/diff/100001/content/renderer/pepper/pepper_plugin_instance_throttler_unittest.cc File content/renderer/pepper/pepper_plugin_instance_throttler_unittest.cc (right): https://codereview.chromium.org/707113002/diff/100001/content/renderer/pepper/pepper_plugin_instance_throttler_unittest.cc#newcode70 content/renderer/pepper/pepper_plugin_instance_throttler_unittest.cc:70: throttler_->DisablePowerSaverByRetroactiveWhitelist(); ...
6 years, 1 month ago (2014-11-13 02:33:36 UTC) #7
raymes
lgtm https://codereview.chromium.org/707113002/diff/120001/content/renderer/pepper/pepper_plugin_instance_throttler.cc File content/renderer/pepper/pepper_plugin_instance_throttler.cc (right): https://codereview.chromium.org/707113002/diff/120001/content/renderer/pepper/pepper_plugin_instance_throttler.cc#newcode14 content/renderer/pepper/pepper_plugin_instance_throttler.cc:14: #include "content/renderer/pepper/plugin_module.h" nit: I think we can get ...
6 years, 1 month ago (2014-11-13 02:42:43 UTC) #8
tommycli
https://codereview.chromium.org/707113002/diff/120001/content/renderer/pepper/pepper_plugin_instance_throttler.cc File content/renderer/pepper/pepper_plugin_instance_throttler.cc (right): https://codereview.chromium.org/707113002/diff/120001/content/renderer/pepper/pepper_plugin_instance_throttler.cc#newcode14 content/renderer/pepper/pepper_plugin_instance_throttler.cc:14: #include "content/renderer/pepper/plugin_module.h" On 2014/11/13 02:42:43, raymes wrote: > nit: ...
6 years, 1 month ago (2014-11-13 19:03:41 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/707113002/140001
6 years, 1 month ago (2014-11-13 19:05:15 UTC) #11
commit-bot: I haz the power
Committed patchset #8 (id:140001)
6 years, 1 month ago (2014-11-13 20:07:36 UTC) #12
commit-bot: I haz the power
6 years, 1 month ago (2014-11-13 20:08:09 UTC) #13
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/958f5e401524d8a31c5cf9228b3c9adace3d30ff
Cr-Commit-Position: refs/heads/master@{#304066}

Powered by Google App Engine
This is Rietveld 408576698