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

Issue 2708013003: [MD settings] show icon when content settings are controlled by an extension (Closed)

Created:
3 years, 10 months ago by dschuyler
Modified:
3 years, 9 months ago
Reviewers:
stevenjb, Dan Beam
CC:
chromium-reviews, michaelpg+watch-elements_chromium.org, stevenjb+watch-md-settings_chromium.org, dbeam+watch-elements_chromium.org, oshima+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[MD settings] show icon when content settings are controlled by an extension This CL adds an policy/controlledBy icon to content settings when that setting is controlled by an extension. It also disables the toggle control for that content setting. BUG=693301 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Review-Url: https://codereview.chromium.org/2708013003 Cr-Commit-Position: refs/heads/master@{#454756} Committed: https://chromium.googlesource.com/chromium/src/+/2e192df5bae608faf8e02c2a26fc26e40552f2f8

Patch Set 1 : unit tests #

Patch Set 2 : tooltip #

Patch Set 3 : closure #

Total comments: 6

Patch Set 4 : isPrefEnforced #

Total comments: 2

Patch Set 5 : ignore-extensions #

Total comments: 15

Patch Set 6 : redo with CL 2696903005 #

Patch Set 7 : unit test fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -26 lines) Patch
M chrome/browser/resources/settings/appearance_page/appearance_page.html View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/resources/settings/controls/settings_boolean_control_behavior.js View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/settings/controls/settings_input.js View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/settings/internet_page/network_proxy.html View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/resources/settings/on_startup_page/on_startup_page.html View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/settings/settings_ui/settings_ui.js View 1 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/resources/settings/system_page/system_page.html View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/policy_indicator_localized_strings_provider.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/test/data/webui/settings/controlled_button_tests.js View 6 1 chunk +1 line, -1 line 0 comments Download
M ui/webui/resources/cr_elements/policy/cr_policy_indicator_behavior.js View 1 2 3 4 5 4 chunks +9 lines, -11 lines 0 comments Download
M ui/webui/resources/cr_elements/policy/cr_policy_pref_behavior.js View 1 2 3 4 5 1 chunk +20 lines, -6 lines 0 comments Download
M ui/webui/resources/cr_elements/policy/cr_policy_pref_indicator.js View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 77 (50 generated)
dschuyler
3 years, 10 months ago (2017-02-24 02:35:47 UTC) #17
Dan Beam
https://codereview.chromium.org/2708013003/diff/60001/ui/webui/resources/cr_elements/policy/cr_policy_indicator_behavior.js File ui/webui/resources/cr_elements/policy/cr_policy_indicator_behavior.js (left): https://codereview.chromium.org/2708013003/diff/60001/ui/webui/resources/cr_elements/policy/cr_policy_indicator_behavior.js#oldcode42 ui/webui/resources/cr_elements/policy/cr_policy_indicator_behavior.js:42: type != CrPolicyIndicatorType.EXTENSION; how does this affect other UIs ...
3 years, 10 months ago (2017-02-24 04:44:20 UTC) #21
Dan Beam
https://codereview.chromium.org/2708013003/diff/60001/ui/webui/resources/cr_elements/policy/cr_policy_pref_behavior.js File ui/webui/resources/cr_elements/policy/cr_policy_pref_behavior.js (left): https://codereview.chromium.org/2708013003/diff/60001/ui/webui/resources/cr_elements/policy/cr_policy_pref_behavior.js#oldcode17 ui/webui/resources/cr_elements/policy/cr_policy_pref_behavior.js:17: pref.controlledBy != chrome.settingsPrivate.ControlledBy.EXTENSION; On 2017/02/24 04:44:20, Dan Beam wrote: ...
3 years, 10 months ago (2017-02-24 04:45:46 UTC) #22
dschuyler
https://codereview.chromium.org/2708013003/diff/60001/ui/webui/resources/cr_elements/policy/cr_policy_indicator_behavior.js File ui/webui/resources/cr_elements/policy/cr_policy_indicator_behavior.js (left): https://codereview.chromium.org/2708013003/diff/60001/ui/webui/resources/cr_elements/policy/cr_policy_indicator_behavior.js#oldcode42 ui/webui/resources/cr_elements/policy/cr_policy_indicator_behavior.js:42: type != CrPolicyIndicatorType.EXTENSION; On 2017/02/24 04:44:19, Dan Beam wrote: ...
3 years, 9 months ago (2017-02-24 21:36:46 UTC) #25
Dan Beam
https://codereview.chromium.org/2708013003/diff/80001/ui/webui/resources/cr_elements/policy/cr_policy_pref_behavior.js File ui/webui/resources/cr_elements/policy/cr_policy_pref_behavior.js (right): https://codereview.chromium.org/2708013003/diff/80001/ui/webui/resources/cr_elements/policy/cr_policy_pref_behavior.js#newcode41 ui/webui/resources/cr_elements/policy/cr_policy_pref_behavior.js:41: return CrPolicyIndicatorType.EXTENSION; please show me screenshots of situations like ...
3 years, 9 months ago (2017-02-25 00:13:42 UTC) #28
dschuyler
> 1) add extension icons back as first-level citizens in cr-pref-*-indicators > 2) add a ...
3 years, 9 months ago (2017-02-28 00:15:18 UTC) #33
dschuyler
On 2017/02/28 00:15:18, dschuyler wrote: > > 1) add extension icons back as first-level citizens ...
3 years, 9 months ago (2017-02-28 01:31:52 UTC) #34
Dan Beam
stevenjb@: what do you think about this? it's to avoid showing double indicators but fix ...
3 years, 9 months ago (2017-02-28 02:30:04 UTC) #35
Dan Beam
+stevenjb@ as a reviewer for realz now (was already on a watchlist, though)
3 years, 9 months ago (2017-02-28 02:30:42 UTC) #38
stevenjb
https://codereview.chromium.org/2708013003/diff/100001/chrome/browser/resources/settings/appearance_page/appearance_page.html File chrome/browser/resources/settings/appearance_page/appearance_page.html (right): https://codereview.chromium.org/2708013003/diff/100001/chrome/browser/resources/settings/appearance_page/appearance_page.html#newcode118 chrome/browser/resources/settings/appearance_page/appearance_page.html:118: pref="[[prefs.homepage_is_newtabpage]]" ignore-extensions> On 2017/02/28 00:15:18, dschuyler wrote: > ignore-extensions ...
3 years, 9 months ago (2017-02-28 02:59:33 UTC) #39
Dan Beam
https://codereview.chromium.org/2708013003/diff/100001/ui/webui/resources/cr_elements/policy/cr_policy_pref_behavior.js File ui/webui/resources/cr_elements/policy/cr_policy_pref_behavior.js (right): https://codereview.chromium.org/2708013003/diff/100001/ui/webui/resources/cr_elements/policy/cr_policy_pref_behavior.js#newcode18 ui/webui/resources/cr_elements/policy/cr_policy_pref_behavior.js:18: ignoreExtensions: Boolean, On 2017/02/28 02:59:33, stevenjb wrote: > On ...
3 years, 9 months ago (2017-02-28 03:02:11 UTC) #40
Dan Beam
https://codereview.chromium.org/2708013003/diff/100001/chrome/browser/resources/settings/appearance_page/appearance_page.html File chrome/browser/resources/settings/appearance_page/appearance_page.html (right): https://codereview.chromium.org/2708013003/diff/100001/chrome/browser/resources/settings/appearance_page/appearance_page.html#newcode118 chrome/browser/resources/settings/appearance_page/appearance_page.html:118: pref="[[prefs.homepage_is_newtabpage]]" ignore-extensions> On 2017/02/28 02:59:33, stevenjb wrote: > On ...
3 years, 9 months ago (2017-02-28 19:51:37 UTC) #41
stevenjb
https://codereview.chromium.org/2708013003/diff/100001/chrome/browser/resources/settings/appearance_page/appearance_page.html File chrome/browser/resources/settings/appearance_page/appearance_page.html (right): https://codereview.chromium.org/2708013003/diff/100001/chrome/browser/resources/settings/appearance_page/appearance_page.html#newcode118 chrome/browser/resources/settings/appearance_page/appearance_page.html:118: pref="[[prefs.homepage_is_newtabpage]]" ignore-extensions> On 2017/02/28 19:51:36, Dan Beam wrote: > ...
3 years, 9 months ago (2017-02-28 19:56:29 UTC) #42
Dan Beam
https://codereview.chromium.org/2708013003/diff/100001/ui/webui/resources/cr_elements/policy/cr_policy_pref_behavior.js File ui/webui/resources/cr_elements/policy/cr_policy_pref_behavior.js (right): https://codereview.chromium.org/2708013003/diff/100001/ui/webui/resources/cr_elements/policy/cr_policy_pref_behavior.js#newcode18 ui/webui/resources/cr_elements/policy/cr_policy_pref_behavior.js:18: ignoreExtensions: Boolean, On 2017/02/28 19:56:28, stevenjb wrote: > On ...
3 years, 9 months ago (2017-02-28 20:00:38 UTC) #43
dschuyler
On 2017/02/28 20:00:38, Dan Beam wrote: > https://codereview.chromium.org/2708013003/diff/100001/ui/webui/resources/cr_elements/policy/cr_policy_pref_behavior.js > File ui/webui/resources/cr_elements/policy/cr_policy_pref_behavior.js (right): > > https://codereview.chromium.org/2708013003/diff/100001/ui/webui/resources/cr_elements/policy/cr_policy_pref_behavior.js#newcode18 ...
3 years, 9 months ago (2017-02-28 22:21:34 UTC) #44
dschuyler
On 2017/02/28 02:30:04, Dan Beam wrote: > stevenjb@: what do you think about this? it's ...
3 years, 9 months ago (2017-03-01 23:07:40 UTC) #56
dschuyler
This was a redo on top of the other CL. Please take a fresh look. ...
3 years, 9 months ago (2017-03-01 23:10:11 UTC) #57
stevenjb
lgtm
3 years, 9 months ago (2017-03-01 23:21:48 UTC) #60
scottchen
On 2017/03/01 23:21:48, stevenjb wrote: > lgtm I have to agree with Dan regarding the ...
3 years, 9 months ago (2017-03-02 20:13:57 UTC) #65
dschuyler
On 2017/03/02 20:13:57, scottchen wrote: > On 2017/03/01 23:21:48, stevenjb wrote: > > lgtm > ...
3 years, 9 months ago (2017-03-02 20:17:44 UTC) #66
stevenjb
sgtm On Thu, Mar 2, 2017 at 1:17 PM, <dschuyler@chromium.org> wrote: > On 2017/03/02 20:13:57, ...
3 years, 9 months ago (2017-03-02 20:23:56 UTC) #67
Dan Beam
On 2017/03/02 20:23:56, stevenjb wrote: > sgtm > > On Thu, Mar 2, 2017 at ...
3 years, 9 months ago (2017-03-02 20:48:51 UTC) #68
scottchen
On 2017/03/02 20:48:51, Dan Beam wrote: > On 2017/03/02 20:23:56, stevenjb wrote: > > sgtm ...
3 years, 9 months ago (2017-03-03 01:23:37 UTC) #69
dschuyler
On 2017/03/03 01:23:37, scottchen wrote: > On 2017/03/02 20:48:51, Dan Beam wrote: > > On ...
3 years, 9 months ago (2017-03-03 23:00:57 UTC) #70
Dan Beam
lgtm
3 years, 9 months ago (2017-03-04 02:28:40 UTC) #71
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2708013003/200001
3 years, 9 months ago (2017-03-04 02:35:55 UTC) #74
commit-bot: I haz the power
3 years, 9 months ago (2017-03-04 03:55:44 UTC) #77
Message was sent while issue was closed.
Committed patchset #7 (id:200001) as
https://chromium.googlesource.com/chromium/src/+/2e192df5bae608faf8e02c2a26fc...

Powered by Google App Engine
This is Rietveld 408576698