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

Issue 12084065: Convert chrome://policy to new WebUI style (Closed)

Created:
7 years, 10 months ago by bartfab (slow)
Modified:
7 years, 10 months ago
CC:
chromium-reviews, arv (Not doing code reviews)
Visibility:
Public.

Description

Convert chrome://policy to new WebUI style This CL converts the chrome://policy page to the new WebUI style. The page reuses as much CSS/JS from the überpage as possible to ensure consistency. The CL also improves the page in many ways: * Proper separation of policy value aggregation (C++) and presentation (WebUI) * Better handling of policy values that overflow the available space (an extra table row can be toggled that shows the whole value) * New PolicyUIHandler backend that will be shared with the imminent more user-friendly chrome://policy page (see bug 134849). * Removal of dependency on JS templating engine with its copious use of eval(). * New browser test that verifies policy definitions and values are sent from the C++ backend to the WebUI and processed there correctly. TEST=browser_tests and manual BUG=chromium-os:26628 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=180684

Patch Set 1 #

Patch Set 2 : Add accidentally removed string that shows when no policies have been set. #

Patch Set 3 : Move string to the correct position. #

Total comments: 27

Patch Set 4 : Comments addressed. Merged PolicyUIHandlerBase into PolicyUIHandler. Strings updated. #

Patch Set 5 : Update test name. #

Total comments: 4

Patch Set 6 : Nits addressed. #

Patch Set 7 : Removed tag names from CSS selectors that unambiguously match on id anyway. #

Total comments: 8

Patch Set 8 : Nits addressed. #

Patch Set 9 : Updated browser test after rebase. #

Patch Set 10 : Rebased. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1259 lines, -1152 lines) Patch
M chrome/app/generated_resources.grd View 2 chunks +89 lines, -99 lines 0 comments Download
M chrome/browser/resources/policy.css View 1 2 3 4 5 6 1 chunk +69 lines, -126 lines 0 comments Download
M chrome/browser/resources/policy.html View 1 1 chunk +109 lines, -144 lines 0 comments Download
M chrome/browser/resources/policy.js View 1 2 3 4 5 1 chunk +348 lines, -203 lines 0 comments Download
M chrome/browser/ui/webui/policy_ui.h View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -77 lines 0 comments Download
M chrome/browser/ui/webui/policy_ui.cc View 1 2 3 4 5 6 7 8 9 12 chunks +376 lines, -333 lines 0 comments Download
A chrome/browser/ui/webui/policy_ui_browsertest.cc View 1 2 3 4 5 6 7 8 1 chunk +260 lines, -0 lines 0 comments Download
D chrome/browser/ui/webui/policy_ui_unittest.cc View 1 chunk +0 lines, -168 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 2 chunks +0 lines, -2 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
bartfab (slow)
Hi James, Could you please take a look at this CL? Hi Mattias, Could you ...
7 years, 10 months ago (2013-01-30 14:03:17 UTC) #1
James Hawkins
Please attach before/after screenshots. https://codereview.chromium.org/12084065/diff/15001/chrome/browser/resources/policy.css File chrome/browser/resources/policy.css (right): https://codereview.chromium.org/12084065/diff/15001/chrome/browser/resources/policy.css#newcode14 chrome/browser/resources/policy.css:14: div#filter-overlay { Do you mean ...
7 years, 10 months ago (2013-01-30 16:22:29 UTC) #2
Mattias Nissler (ping if slow)
First round of comments, I didn't look closely at the javascripts or the tests yet ...
7 years, 10 months ago (2013-01-30 16:34:59 UTC) #3
bartfab (slow)
https://chromiumcodereview.appspot.com/12084065/diff/15001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://chromiumcodereview.appspot.com/12084065/diff/15001/chrome/app/generated_resources.grd#newcode5962 chrome/app/generated_resources.grd:5962: + <!-- chrome://policy --> On 2013/01/30 16:34:59, Mattias Nissler ...
7 years, 10 months ago (2013-01-31 14:24:17 UTC) #4
James Hawkins
LGTM with nits. https://chromiumcodereview.appspot.com/12084065/diff/15001/chrome/browser/resources/policy.css File chrome/browser/resources/policy.css (right): https://chromiumcodereview.appspot.com/12084065/diff/15001/chrome/browser/resources/policy.css#newcode14 chrome/browser/resources/policy.css:14: div#filter-overlay { On 2013/01/31 14:24:17, bartfab ...
7 years, 10 months ago (2013-01-31 17:08:04 UTC) #5
bartfab (slow)
Nits addressed. https://chromiumcodereview.appspot.com/12084065/diff/15001/chrome/browser/resources/policy.css File chrome/browser/resources/policy.css (right): https://chromiumcodereview.appspot.com/12084065/diff/15001/chrome/browser/resources/policy.css#newcode14 chrome/browser/resources/policy.css:14: div#filter-overlay { But this is entirely different: ...
7 years, 10 months ago (2013-01-31 17:36:12 UTC) #6
James Hawkins
https://chromiumcodereview.appspot.com/12084065/diff/15001/chrome/browser/resources/policy.css File chrome/browser/resources/policy.css (right): https://chromiumcodereview.appspot.com/12084065/diff/15001/chrome/browser/resources/policy.css#newcode14 chrome/browser/resources/policy.css:14: div#filter-overlay { On 2013/01/31 17:36:13, bartfab wrote: > But ...
7 years, 10 months ago (2013-01-31 17:48:22 UTC) #7
bartfab (slow)
On 2013/01/31 17:48:22, James Hawkins wrote: > https://chromiumcodereview.appspot.com/12084065/diff/15001/chrome/browser/resources/policy.css > File chrome/browser/resources/policy.css (right): > > https://chromiumcodereview.appspot.com/12084065/diff/15001/chrome/browser/resources/policy.css#newcode14 ...
7 years, 10 months ago (2013-01-31 17:55:47 UTC) #8
M22AlQtbe
7 years, 10 months ago (2013-01-31 18:08:05 UTC) #9
bartfab (slow)
Hi Mattias, friendly review ping
7 years, 10 months ago (2013-02-04 15:11:54 UTC) #10
Mattias Nissler (ping if slow)
LGTM with nits. https://chromiumcodereview.appspot.com/12084065/diff/12/chrome/browser/resources/policy.js File chrome/browser/resources/policy.js (right): https://chromiumcodereview.appspot.com/12084065/diff/12/chrome/browser/resources/policy.js#newcode94 chrome/browser/resources/policy.js:94: this.unset = !value; Just to make ...
7 years, 10 months ago (2013-02-04 16:05:15 UTC) #11
bartfab (slow)
https://codereview.chromium.org/12084065/diff/12/chrome/browser/resources/policy.js File chrome/browser/resources/policy.js (right): https://codereview.chromium.org/12084065/diff/12/chrome/browser/resources/policy.js#newcode94 chrome/browser/resources/policy.js:94: this.unset = !value; On 2013/02/04 16:05:16, Mattias Nissler wrote: ...
7 years, 10 months ago (2013-02-04 17:11:04 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bartfab@chromium.org/12084065/34002
7 years, 10 months ago (2013-02-04 17:37:54 UTC) #13
commit-bot: I haz the power
Failed to apply patch for chrome/browser/ui/webui/policy_ui.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 10 months ago (2013-02-04 21:39:41 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bartfab@chromium.org/12084065/43001
7 years, 10 months ago (2013-02-05 09:37:20 UTC) #15
commit-bot: I haz the power
7 years, 10 months ago (2013-02-05 11:51:55 UTC) #16
Message was sent while issue was closed.
Change committed as 180684

Powered by Google App Engine
This is Rietveld 408576698