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 796543002: Plugin Power Saver: Implement option in Settings. (Closed)

Created:
6 years ago by tommycli
Modified:
6 years ago
CC:
chromium-reviews, creis+watch_chromium.org, nasko+codewatch_chromium.org, jam, stuartmorgan+watch_chromium.org, asvitkine+watch_chromium.org, darin-cc_chromium.org, palmer
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Plugin Power Saver: Implement option in Settings. Relevant review here: https://groups.google.com/a/google.com/d/msg/chrome-ui-review/i5ii03kq8sg/LlItQiRRmjkJ BUG=403800 Committed: https://crrev.com/a23713b67ee741e5bb026d99e86b8c97cc9ab84d Cr-Commit-Position: refs/heads/master@{#308876}

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Total comments: 11

Patch Set 3 : restore the flag which overrides the user's settings #

Patch Set 4 : #

Patch Set 5 : Add separate DETECT setting to content settings. #

Patch Set 6 : Make exceptions dialog for plugins support 'detect'. #

Total comments: 1

Patch Set 7 : fix typo #

Patch Set 8 : fix android build #

Patch Set 9 : fix tests #

Patch Set 10 : fix one more test :( #

Total comments: 7

Patch Set 11 : fix policy templates. #

Patch Set 12 : restore 'ask' to list of allowed settings for policy settings #

Total comments: 2

Patch Set 13 : #

Patch Set 14 : Show ASK as BLOCK in UI. Remove 'ask' from policy_test_cases.json #

Total comments: 3

Patch Set 15 : #

Patch Set 16 : Fix Website Settings (from Lock icon) to work with DETECT #

Patch Set 17 : Clean some of the WebUI WebSettings code. #

Total comments: 5

Patch Set 18 : "Fix" a browser test by disabling it. Fix a nit. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+261 lines, -359 lines) Patch
M chrome/app/generated_resources.grd View 5 chunks +18 lines, -12 lines 0 comments Download
M chrome/browser/android/preferences/pref_service_bridge.cc View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/content_settings/host_content_settings_map_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +17 lines, -7 lines 0 comments Download
M chrome/browser/plugins/plugin_info_message_filter.cc View 1 2 3 4 2 chunks +7 lines, -4 lines 0 comments Download
M chrome/browser/plugins/plugin_info_message_filter_unittest.cc View 1 2 3 4 5 6 7 8 3 chunks +9 lines, -9 lines 0 comments Download
M chrome/browser/prerender/prerender_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +11 lines, -7 lines 1 comment Download
M chrome/browser/resources/options/content_settings.html View 1 2 3 4 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/browser/resources/options/content_settings_exceptions_area.js View 1 2 3 4 5 6 chunks +10 lines, -20 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 1 chunk +4 lines, -0 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 4 chunks +24 lines, -24 lines 0 comments Download
M chrome/browser/ui/webui/options/content_settings_handler.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +0 lines, -5 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 17 3 chunks +118 lines, -122 lines 0 comments Download
M chrome/browser/ui/webui/options/website_settings_handler.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/browser/ui/webui/options/website_settings_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +9 lines, -17 lines 0 comments Download
M chrome/common/render_messages.h View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/chrome_content_renderer_client.cc View 1 2 3 4 5 6 7 5 chunks +12 lines, -23 lines 0 comments Download
D chrome/renderer/resources/click_to_play_plugin.html View 1 chunk +0 lines, -57 lines 0 comments Download
M chrome/renderer/resources/renderer_resources.grd View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/test/data/policy/policy_test_cases.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -3 lines 0 comments Download
D chrome/test/data/prerender/prerender_plugin_click_to_play.html View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -31 lines 0 comments Download
A + chrome/test/data/prerender/prerender_plugin_power_saver.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +5 lines, -7 lines 0 comments Download
M components/content_settings/core/browser/content_settings_utils.cc View 1 2 3 4 2 chunks +4 lines, -0 lines 0 comments Download
M components/content_settings/core/browser/host_content_settings_map.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M components/content_settings/core/common/content_settings.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M tools/metrics/actions/actions.xml View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 56 (8 generated)
tommycli
thestig: May I have a chrome/ review? groby: +cc https://codereview.chromium.org/796543002/diff/1/chrome/renderer/chrome_content_renderer_client.cc File chrome/renderer/chrome_content_renderer_client.cc (left): https://codereview.chromium.org/796543002/diff/1/chrome/renderer/chrome_content_renderer_client.cc#oldcode687 chrome/renderer/chrome_content_renderer_client.cc:687: ...
6 years ago (2014-12-10 21:31:44 UTC) #2
Lei Zhang
Fine by me, but bauerb probably should have a look too. https://codereview.chromium.org/796543002/diff/1/chrome/common/render_messages.h File chrome/common/render_messages.h (right): ...
6 years ago (2014-12-10 21:51:01 UTC) #4
tommycli
thanks. I see you have already included bauerb. cool. https://codereview.chromium.org/796543002/diff/1/chrome/common/render_messages.h File chrome/common/render_messages.h (right): https://codereview.chromium.org/796543002/diff/1/chrome/common/render_messages.h#newcode53 chrome/common/render_messages.h:53: ...
6 years ago (2014-12-10 21:52:55 UTC) #5
Bernhard Bauer
+palmer, pkasting https://codereview.chromium.org/796543002/diff/20001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (left): https://codereview.chromium.org/796543002/diff/20001/chrome/app/generated_resources.grd#oldcode8030 chrome/app/generated_resources.grd:8030: - Click to play Hm... this changes ...
6 years ago (2014-12-11 14:42:21 UTC) #6
tommycli
bauerb: I should have linked this originally. This change in behavior has been reviewed by ...
6 years ago (2014-12-11 17:11:19 UTC) #7
tommycli
isherman: May I have a tools/ review?
6 years ago (2014-12-11 17:12:10 UTC) #9
Bernhard Bauer
LGTM, although I'm still somewhat reluctant about changing the behavior for users who have previously ...
6 years ago (2014-12-11 17:28:29 UTC) #10
tommycli
Hey Bernhard, We plan to migrate users who have already chosen "Click to Play" to ...
6 years ago (2014-12-11 18:00:44 UTC) #11
tommycli
creis: May i have a content/ review? thanks
6 years ago (2014-12-11 18:06:12 UTC) #13
Bernhard Bauer
Thanks for the explanations! Some comments inline: On 2014/12/11 18:00:44, tommycli wrote: > Hey Bernhard, ...
6 years ago (2014-12-11 18:15:21 UTC) #14
groby-ooo-7-16
More comments inline... On 2014/12/11 18:15:21, Bernhard Bauer wrote: > Thanks for the explanations! Some ...
6 years ago (2014-12-11 19:14:11 UTC) #15
groby-ooo-7-16
Sorry, a few more comments https://codereview.chromium.org/796543002/diff/20001/chrome/browser/about_flags.cc File chrome/browser/about_flags.cc (left): https://codereview.chromium.org/796543002/diff/20001/chrome/browser/about_flags.cc#oldcode2016 chrome/browser/about_flags.cc:2016: }, We shouldn't remove ...
6 years ago (2014-12-11 19:22:04 UTC) #16
Bernhard Bauer
On 2014/12/11 19:14:11, groby wrote: > More comments inline... > > On 2014/12/11 18:15:21, Bernhard ...
6 years ago (2014-12-11 19:41:23 UTC) #17
Peter Kasting
Since I got CCed on this review, my only comment is that we should ensure ...
6 years ago (2014-12-11 19:52:44 UTC) #18
groby-ooo-7-16
Rietveld chokes on the comment, so let's try e-mail.... Bernhard: I was under the impression ...
6 years ago (2014-12-11 21:45:18 UTC) #19
Peter Kasting
On Thu, Dec 11, 2014 at 1:44 PM, Rachel Blum <groby@chromium.org> wrote: > Rietveld chokes ...
6 years ago (2014-12-11 21:52:26 UTC) #20
Bernhard Bauer
On Thu Dec 11 2014 at 9:45:18 PM Rachel Blum <groby@chromium.org> wrote: > Rietveld chokes ...
6 years ago (2014-12-11 23:00:34 UTC) #21
Ilya Sherman
actions.xml lgtm -- thanks
6 years ago (2014-12-11 23:07:35 UTC) #22
tommycli
groby: addressed your in-code comments below https://codereview.chromium.org/796543002/diff/20001/chrome/browser/about_flags.cc File chrome/browser/about_flags.cc (left): https://codereview.chromium.org/796543002/diff/20001/chrome/browser/about_flags.cc#oldcode2016 chrome/browser/about_flags.cc:2016: }, On 2014/12/11 ...
6 years ago (2014-12-12 00:45:23 UTC) #23
tommycli
groby: addressed some more comments inline below: On 2014/12/11 19:14:11, groby wrote: > More comments ...
6 years ago (2014-12-12 00:47:38 UTC) #24
Charlie Reis
On 2014/12/11 18:06:12, tommycli wrote: > creis: May i have a content/ review? thanks Looks ...
6 years ago (2014-12-12 17:28:26 UTC) #25
tommycli
bauerb: PTAL. The latest patchset implements the scheme we discussed over email. generated_resources.grd also changed ...
6 years ago (2014-12-12 20:17:50 UTC) #26
tommycli
bauerb: friendly ping. don't mean to be a nag. london time & PST offset in ...
6 years ago (2014-12-15 15:35:10 UTC) #27
Bernhard Bauer
LGTM! Sorry for the late reply; this got buried over the weekend.
6 years ago (2014-12-15 17:19:31 UTC) #28
tommycli
bauerb: No problemo. Thank you sir1
6 years ago (2014-12-15 17:25:33 UTC) #29
tommycli
thestig: May i have a chrome/ OWNER stamp?
6 years ago (2014-12-15 17:26:08 UTC) #30
tommycli
tsepez: May I have a review for chrome/common/render_messages.h please? Thanks.
6 years ago (2014-12-15 22:44:05 UTC) #32
Tom Sepez
lgtm
6 years ago (2014-12-15 22:52:01 UTC) #33
Lei Zhang
Looking... Do we need to update the enterprise setting template? components/policy/resources/policy_templates.json
6 years ago (2014-12-15 22:58:08 UTC) #34
tommycli
On 2014/12/15 22:58:08, Lei Zhang wrote: > Looking... > > Do we need to update ...
6 years ago (2014-12-15 23:00:56 UTC) #35
tommycli
On 2014/12/15 23:00:56, tommycli wrote: > On 2014/12/15 22:58:08, Lei Zhang wrote: > > Looking... ...
6 years ago (2014-12-15 23:06:32 UTC) #36
tommycli
atwilson: May I have a components/policy review? Thanks. Be aware: I am changing one of ...
6 years ago (2014-12-15 23:12:25 UTC) #38
tommycli
On 2014/12/15 23:12:25, tommycli wrote: > atwilson: May I have a components/policy review? Thanks. > ...
6 years ago (2014-12-15 23:13:07 UTC) #39
Bernhard Bauer
On 2014/12/15 23:13:07, tommycli wrote: > On 2014/12/15 23:12:25, tommycli wrote: > > atwilson: May ...
6 years ago (2014-12-15 23:15:15 UTC) #40
tommycli
On 2014/12/15 23:15:15, Bernhard Bauer wrote: > On 2014/12/15 23:13:07, tommycli wrote: > > On ...
6 years ago (2014-12-15 23:33:05 UTC) #41
Lei Zhang
https://codereview.chromium.org/796543002/diff/160001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/796543002/diff/160001/chrome/app/generated_resources.grd#newcode8030 chrome/app/generated_resources.grd:8030: + Do not run plugins by default Do we ...
6 years ago (2014-12-16 00:00:38 UTC) #42
Bernhard Bauer
On 2014/12/15 23:33:05, tommycli wrote: > On 2014/12/15 23:15:15, Bernhard Bauer wrote: > > On ...
6 years ago (2014-12-16 09:12:36 UTC) #43
Andrew T Wilson (Slow)
https://codereview.chromium.org/796543002/diff/200001/components/policy/resources/policy_templates.json File components/policy/resources/policy_templates.json (right): https://codereview.chromium.org/796543002/diff/200001/components/policy/resources/policy_templates.json#newcode2514 components/policy/resources/policy_templates.json:2514: 'value': 5, Why is this 5 and not 4? ...
6 years ago (2014-12-16 09:48:09 UTC) #44
tommycli
thestig/bauerb: Addressed your comments. - Reverted the policy changes. - Show ASK as BLOCK in ...
6 years ago (2014-12-16 19:55:47 UTC) #45
Lei Zhang
https://codereview.chromium.org/796543002/diff/240001/chrome/browser/ui/webui/options/content_settings_handler.cc File chrome/browser/ui/webui/options/content_settings_handler.cc (right): https://codereview.chromium.org/796543002/diff/240001/chrome/browser/ui/webui/options/content_settings_handler.cc#newcode599 chrome/browser/ui/webui/options/content_settings_handler.cc:599: // For Plugins, display the obsolete ASK setting as ...
6 years ago (2014-12-16 21:20:18 UTC) #46
tommycli
thestig: Okay i fixed the lock icon. See below. Thanks! https://codereview.chromium.org/796543002/diff/240001/chrome/browser/ui/webui/options/content_settings_handler.cc File chrome/browser/ui/webui/options/content_settings_handler.cc (right): https://codereview.chromium.org/796543002/diff/240001/chrome/browser/ui/webui/options/content_settings_handler.cc#newcode599 ...
6 years ago (2014-12-16 23:32:29 UTC) #47
Lei Zhang
https://codereview.chromium.org/796543002/diff/300001/chrome/browser/prerender/prerender_browsertest.cc File chrome/browser/prerender/prerender_browsertest.cc (right): https://codereview.chromium.org/796543002/diff/300001/chrome/browser/prerender/prerender_browsertest.cc#newcode2063 chrome/browser/prerender/prerender_browsertest.cc:2063: // Checks that plugins are not loaded on prerendering ...
6 years ago (2014-12-17 00:36:01 UTC) #49
Bernhard Bauer
lgtm
6 years ago (2014-12-17 17:14:17 UTC) #50
tommycli
thestig: Okay thanks for being patient with me. I think I got it. The Test ...
6 years ago (2014-12-17 19:51:06 UTC) #51
Lei Zhang
lgtm https://codereview.chromium.org/796543002/diff/200002/chrome/browser/prerender/prerender_browsertest.cc File chrome/browser/prerender/prerender_browsertest.cc (right): https://codereview.chromium.org/796543002/diff/200002/chrome/browser/prerender/prerender_browsertest.cc#newcode2040 chrome/browser/prerender/prerender_browsertest.cc:2040: #if defined(USE_AURA) && !defined(OS_WIN) Ouch, this is pretty ...
6 years ago (2014-12-17 20:46:40 UTC) #52
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/796543002/200002
6 years ago (2014-12-17 20:57:11 UTC) #54
commit-bot: I haz the power
Committed patchset #18 (id:200002)
6 years ago (2014-12-17 23:17:58 UTC) #55
commit-bot: I haz the power
6 years ago (2014-12-17 23:19:18 UTC) #56
Message was sent while issue was closed.
Patchset 18 (id:??) landed as
https://crrev.com/a23713b67ee741e5bb026d99e86b8c97cc9ab84d
Cr-Commit-Position: refs/heads/master@{#308876}

Powered by Google App Engine
This is Rietveld 408576698