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

Issue 17387002: Sending known policy names for extensions to chrome://policy page (Closed)

Created:
7 years, 6 months ago by anitawoodruff
Modified:
7 years, 6 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, arv+watch_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@anita-policies
Visibility:
Public.

Description

Sending known policy names for extensions to chrome://policy page Currently only the Chrome policy table shows policies which exist but have not been set. This change allows extension policy tables to show all known policies defined in their policy schemas, when the 'show unset policies' checkbox is ticked. Hence the Status column has been resurrected for all extension policy tables, since it now may show either 'OK' or 'Not set.' BUG=248533 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=208469

Patch Set 1 : Sending known policy names for extensions #

Total comments: 3

Patch Set 2 : After rebasing against patch set 9 of issue 16689004 #

Total comments: 8

Patch Set 3 : Fixing indentation and out-of-date parameter documentation #

Patch Set 4 : Use a single for-loop in policy_ui.cc SendPolicyNames #

Patch Set 5 : Only resend policy names on extensions loaded/unloaded #

Patch Set 6 : After rebasing against patch set 10 of issue 16689004 #

Total comments: 14

Patch Set 7 : Responding to Joao's comments on PS6 #

Total comments: 17

Patch Set 8 : Adding required includes, removing superfluous comments #

Patch Set 9 : Renaming SchemaMap iterator to a unique name in local scope #

Patch Set 10 : Removed unnecessary comments from SendPolicyValues; rebased against master #

Patch Set 11 : ifdef guards to prevent crash on OS_ANDROID and OS_IOS #

Patch Set 12 : After rebasing against master #

Total comments: 1

Patch Set 13 : Fixing accidentally-removed line in prev patch #

Unified diffs Side-by-side diffs Delta from patch set Stats (+132 lines, -83 lines) Patch
M chrome/browser/resources/policy.js View 1 2 3 4 5 6 7 8 9 10 chunks +52 lines, -63 lines 0 comments Download
M chrome/browser/ui/webui/policy_ui.cc View 1 2 3 4 5 6 7 8 9 10 11 12 7 chunks +80 lines, -20 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
anitawoodruff
Hi Joao, here's my 2nd CL, sorry it took a while to upload. Major changes ...
7 years, 6 months ago (2013-06-18 09:14:10 UTC) #1
Joao da Silva
https://codereview.chromium.org/17387002/diff/4001/chrome/browser/ui/webui/policy_ui.cc File chrome/browser/ui/webui/policy_ui.cc (right): https://codereview.chromium.org/17387002/diff/4001/chrome/browser/ui/webui/policy_ui.cc#newcode505 chrome/browser/ui/webui/policy_ui.cc:505: SendPolicyNames(); On 2013/06/18 09:14:10, anitawoodruff wrote: > This seemed ...
7 years, 6 months ago (2013-06-18 13:26:04 UTC) #2
anitawoodruff
Fixed indentation of parameters & a couple of other things I noticed. https://codereview.chromium.org/17387002/diff/8001/chrome/browser/resources/policy.js File chrome/browser/resources/policy.js ...
7 years, 6 months ago (2013-06-18 13:50:41 UTC) #3
anitawoodruff
Hey Joao, thanks for the tip about the for-loop, your way makes way more sense. ...
7 years, 6 months ago (2013-06-18 14:53:37 UTC) #4
anitawoodruff
Hey Joao, I did as you said and made the class a notification observer so ...
7 years, 6 months ago (2013-06-19 13:36:44 UTC) #5
Joao da Silva
Almost there https://codereview.chromium.org/17387002/diff/24001/chrome/browser/resources/policy.js File chrome/browser/resources/policy.js (right): https://codereview.chromium.org/17387002/diff/24001/chrome/browser/resources/policy.js#newcode392 chrome/browser/resources/policy.js:392: var chromeTable = this.appendNewTable('chrome', 'Chrome policies', ''); ...
7 years, 6 months ago (2013-06-19 16:35:16 UTC) #6
anitawoodruff
Hi Joao/James, Joao said I should add James as another reviewer to this review, now ...
7 years, 6 months ago (2013-06-20 09:13:32 UTC) #7
Joao da Silva
lgtm
7 years, 6 months ago (2013-06-20 17:53:20 UTC) #8
James Hawkins
LGTM with nits. https://codereview.chromium.org/17387002/diff/31001/chrome/browser/resources/policy.js File chrome/browser/resources/policy.js (right): https://codereview.chromium.org/17387002/diff/31001/chrome/browser/resources/policy.js#newcode332 chrome/browser/resources/policy.js:332: } Optional nit: Blank lines between ...
7 years, 6 months ago (2013-06-20 18:18:52 UTC) #9
anitawoodruff
Thanks for your comments James. https://codereview.chromium.org/17387002/diff/31001/chrome/browser/resources/policy.js File chrome/browser/resources/policy.js (right): https://codereview.chromium.org/17387002/diff/31001/chrome/browser/resources/policy.js#newcode332 chrome/browser/resources/policy.js:332: } On 2013/06/20 18:18:52, ...
7 years, 6 months ago (2013-06-21 10:16:16 UTC) #10
James Hawkins
https://codereview.chromium.org/17387002/diff/31001/chrome/browser/ui/webui/policy_ui.cc File chrome/browser/ui/webui/policy_ui.cc (right): https://codereview.chromium.org/17387002/diff/31001/chrome/browser/ui/webui/policy_ui.cc#newcode550 chrome/browser/ui/webui/policy_ui.cc:550: // Get extensions. On 2013/06/21 10:16:16, anitawoodruff wrote: > ...
7 years, 6 months ago (2013-06-21 14:54:25 UTC) #11
Joao da Silva
#ifdefs lgtm
7 years, 6 months ago (2013-06-24 13:04:50 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/anitawoodruff@chromium.org/17387002/64001
7 years, 6 months ago (2013-06-25 07:49:47 UTC) #13
anitawoodruff
Hopefully I've learnt my lesson and won't do something this stupid again. https://codereview.chromium.org/17387002/diff/64001/chrome/browser/ui/webui/policy_ui.cc File chrome/browser/ui/webui/policy_ui.cc ...
7 years, 6 months ago (2013-06-25 08:20:04 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/anitawoodruff@chromium.org/17387002/59004
7 years, 6 months ago (2013-06-25 08:23:10 UTC) #15
commit-bot: I haz the power
7 years, 6 months ago (2013-06-25 10:33:47 UTC) #16
Message was sent while issue was closed.
Change committed as 208469

Powered by Google App Engine
This is Rietveld 408576698