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

Issue 1033103002: Plugin Power Saver: Overhaul plugin-power-saver flags. Show in UI. (Closed)

Created:
5 years, 9 months ago by tommycli
Modified:
5 years, 8 months ago
CC:
chromium-reviews, dbeam+watch-options_chromium.org, michaelpg+watch-options_chromium.org, creis+watch_chromium.org, nasko+codewatch_chromium.org, jam, darin-cc_chromium.org, arv+watch_chromium.org, markusheintz_
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Plugin Power Saver: Overhaul plugin-power-saver flags. Show in UI. 1) Combine the existing --enable-plugin-power-saver flag with a Finch experiment. 2) Add a corresponding --disable-plugin-power-saver flag, as that allows users to opt out of a Finch experiment. 3) Shows DETECT in Content Settings UI if flag/Finch is on. Grays out the ALLOW option. 4) Shows DETECT in the Website Settings dropdown if the flag/Finch is on. BUG=471077 Committed: https://crrev.com/e2b1f1b77d410afd44d4d65f67710fef216f0c78 Cr-Commit-Position: refs/heads/master@{#323138}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : Add enable/disable flag. Add basic scaffolding to prepare for Finch experiment. #

Patch Set 5 : add missing include #

Patch Set 6 : #

Total comments: 1

Patch Set 7 : add plugins component to chrome browser deps #

Patch Set 8 : fix gypi i hope #

Total comments: 10

Patch Set 9 : address some of groby comments #

Patch Set 10 : try the groby suggested refactor #

Patch Set 11 : restore flag name to original #

Patch Set 12 : #

Patch Set 13 : add missing histogram for new flag #

Total comments: 6

Patch Set 14 : #

Total comments: 4

Patch Set 15 : #

Patch Set 16 : merge in latest changes from tip of tree #

Patch Set 17 : Move plugins field trial stuff to chrome/ #

Total comments: 6

Patch Set 18 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+142 lines, -55 lines) Patch
M chrome/app/generated_resources.grd View 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/browser/about_flags.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/plugins/plugin_info_message_filter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +7 lines, -2 lines 0 comments Download
A chrome/browser/plugins/plugins_field_trial.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +28 lines, -0 lines 0 comments Download
A chrome/browser/plugins/plugins_field_trial.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +40 lines, -0 lines 0 comments Download
M chrome/browser/resources/options/content_settings.html View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/resources/options/content_settings.js View 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/ui/website_settings/permission_menu_model.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 4 chunks +20 lines, -13 lines 0 comments Download
M chrome/browser/ui/website_settings/website_settings_ui.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +6 lines, -7 lines 0 comments Download
M chrome/browser/ui/webui/options/content_settings_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 4 chunks +11 lines, -7 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/renderer/chrome_content_renderer_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +4 lines, -10 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +0 lines, -1 line 0 comments Download
M content/public/common/content_switches.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +0 lines, -4 lines 0 comments Download
M content/public/common/content_switches.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +0 lines, -5 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 30 (8 generated)
tommycli
thestig, piman: PTAL Thanks!
5 years, 9 months ago (2015-03-26 22:50:54 UTC) #2
piman
lgtm
5 years, 9 months ago (2015-03-26 22:56:42 UTC) #3
tommycli
thestig: PTAL. I tacked on more stuff onto this patch to prep for the 100% ...
5 years, 9 months ago (2015-03-27 22:09:39 UTC) #5
groby-ooo-7-16
If you want to keep things in components, you'll need a components owner to approve. ...
5 years, 9 months ago (2015-03-27 23:12:32 UTC) #7
tommycli
groby: thanks! https://codereview.chromium.org/1033103002/diff/140001/chrome/browser/ui/website_settings/permission_menu_model.cc File chrome/browser/ui/website_settings/permission_menu_model.cc (right): https://codereview.chromium.org/1033103002/diff/140001/chrome/browser/ui/website_settings/permission_menu_model.cc#newcode101 chrome/browser/ui/website_settings/permission_menu_model.cc:101: if (permission_.type == CONTENT_SETTINGS_TYPE_PLUGINS) { On 2015/03/27 ...
5 years, 9 months ago (2015-03-28 00:40:04 UTC) #8
Lei Zhang
https://codereview.chromium.org/1033103002/diff/240001/chrome/browser/BUILD.gn File chrome/browser/BUILD.gn (right): https://codereview.chromium.org/1033103002/diff/240001/chrome/browser/BUILD.gn#newcode116 chrome/browser/BUILD.gn:116: "//components/plugins/common", Shouldn't this be gated on "if (enable_plugins)" ? ...
5 years, 9 months ago (2015-03-28 01:11:58 UTC) #9
blundell
+bauerb bauerb is the right reviewer for adding an owner of the plugins component. tommycli, ...
5 years, 8 months ago (2015-03-30 07:42:40 UTC) #11
tommycli
thestig/blundell: addressed your comments below. Thanks! https://codereview.chromium.org/1033103002/diff/240001/chrome/browser/BUILD.gn File chrome/browser/BUILD.gn (right): https://codereview.chromium.org/1033103002/diff/240001/chrome/browser/BUILD.gn#newcode116 chrome/browser/BUILD.gn:116: "//components/plugins/common", On 2015/03/28 ...
5 years, 8 months ago (2015-03-30 18:25:16 UTC) #12
Lei Zhang
chrome/ lgtm with a couple comments: https://codereview.chromium.org/1033103002/diff/260001/chrome/browser/about_flags.cc File chrome/browser/about_flags.cc (right): https://codereview.chromium.org/1033103002/diff/260001/chrome/browser/about_flags.cc#newcode2061 chrome/browser/about_flags.cc:2061: "plugin-power-saver", This change ...
5 years, 8 months ago (2015-03-30 18:45:31 UTC) #13
tommycli
thestig: thanks! https://codereview.chromium.org/1033103002/diff/260001/chrome/browser/about_flags.cc File chrome/browser/about_flags.cc (right): https://codereview.chromium.org/1033103002/diff/260001/chrome/browser/about_flags.cc#newcode2061 chrome/browser/about_flags.cc:2061: "plugin-power-saver", On 2015/03/30 18:45:31, Lei Zhang wrote: ...
5 years, 8 months ago (2015-03-30 18:59:43 UTC) #15
tommycli
isherman: May I have a tools/histograms review? Thanks!
5 years, 8 months ago (2015-03-30 19:27:00 UTC) #16
Ilya Sherman
histograms.xml lgtm
5 years, 8 months ago (2015-03-30 20:57:01 UTC) #17
tommycli
isherman: thanks! bauerb: ptal,
5 years, 8 months ago (2015-03-30 21:58:14 UTC) #18
tommycli
blundell: thestig just pointed out that bauerb is OOO this whole week. Would you be ...
5 years, 8 months ago (2015-03-30 22:18:57 UTC) #19
blundell
On 2015/03/30 22:18:57, tommycli wrote: > blundell: > > thestig just pointed out that bauerb ...
5 years, 8 months ago (2015-03-31 08:15:37 UTC) #20
tommycli
blundell: No problem. thestig: How do you feel about putting it into chrome/browser/plugins for now? ...
5 years, 8 months ago (2015-03-31 16:37:08 UTC) #21
tommycli
thestig: I moved the stuff in components/plugins/common to chrome/browser/plugins. Let me know if that seems ...
5 years, 8 months ago (2015-03-31 19:07:19 UTC) #23
Lei Zhang
lgtm https://codereview.chromium.org/1033103002/diff/320001/chrome/browser/DEPS File chrome/browser/DEPS (right): https://codereview.chromium.org/1033103002/diff/320001/chrome/browser/DEPS#newcode62 chrome/browser/DEPS:62: "+components/plugins/common", no longer needed https://codereview.chromium.org/1033103002/diff/320001/chrome/browser/plugins/plugins_field_trial.cc File chrome/browser/plugins/plugins_field_trial.cc (right): ...
5 years, 8 months ago (2015-03-31 20:27:39 UTC) #24
tommycli
thestig: thanks! https://codereview.chromium.org/1033103002/diff/320001/chrome/browser/DEPS File chrome/browser/DEPS (right): https://codereview.chromium.org/1033103002/diff/320001/chrome/browser/DEPS#newcode62 chrome/browser/DEPS:62: "+components/plugins/common", On 2015/03/31 20:27:38, Lei Zhang wrote: ...
5 years, 8 months ago (2015-03-31 20:34:56 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1033103002/340001
5 years, 8 months ago (2015-03-31 21:04:24 UTC) #28
commit-bot: I haz the power
Committed patchset #18 (id:340001)
5 years, 8 months ago (2015-03-31 22:55:17 UTC) #29
commit-bot: I haz the power
5 years, 8 months ago (2015-03-31 22:56:06 UTC) #30
Message was sent while issue was closed.
Patchset 18 (id:??) landed as
https://crrev.com/e2b1f1b77d410afd44d4d65f67710fef216f0c78
Cr-Commit-Position: refs/heads/master@{#323138}

Powered by Google App Engine
This is Rietveld 408576698