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

Issue 7585036: First CL for the about:policy page. This only implements the policy section of the page. (Closed)

Created:
9 years, 4 months ago by simo
Modified:
9 years, 3 months ago
CC:
chromium-reviews, John Knottenbelt, Torne
Visibility:
Public.

Description

First CL for the about:policy page. This only implements the policy section of the page. Preliminary design doc: https://docs.google.com/a/google.com/document/d/1KWsF52ImY4eJbNgizaA6Gw_aMVg24zgZfypKZBs376k/edit?hl=en_US&ndplr=1 TEST=set some policies, start chrome and go to chrome://policy Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=98977

Patch Set 1 #

Total comments: 119

Patch Set 2 : Removed the map wrapper and wrapped the javascript functions into an object. #

Total comments: 18

Patch Set 3 : . #

Total comments: 77

Patch Set 4 : . #

Patch Set 5 : Please ignore previous patch. #

Total comments: 12

Patch Set 6 : Changes in policy.html, policy.js and policy.css #

Patch Set 7 : Change in policy.js #

Total comments: 1

Patch Set 8 : Rebased patch #

Patch Set 9 : Fixed a change in policy.html #

Total comments: 30

Patch Set 10 : Added a test case for PolicyStatus #

Total comments: 35

Patch Set 11 : Created MockConfigurationPolicyReader and fixed other nits. #

Total comments: 10

Patch Set 12 : Fixed tests, removed description section from the page. #

Patch Set 13 : Fixed valgrind errors. #

Patch Set 14 : Fixed valgrind errors #

Patch Set 15 : Valgrind fix #

Patch Set 16 : . #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+1505 lines, -8 lines) Patch
M chrome/app/generated_resources.grd View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +54 lines, -0 lines 0 comments Download
M chrome/browser/browser_resources.grd View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -0 lines 0 comments Download
A chrome/browser/policy/configuration_policy_reader.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +120 lines, -0 lines 0 comments Download
A chrome/browser/policy/configuration_policy_reader.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +272 lines, -0 lines 0 comments Download
A chrome/browser/policy/configuration_policy_reader_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +352 lines, -0 lines 0 comments Download
A chrome/browser/policy/mock_configuration_policy_reader.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +28 lines, -0 lines 0 comments Download
A chrome/browser/policy/mock_configuration_policy_reader.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +13 lines, -0 lines 0 comments Download
A chrome/browser/policy/policy_status_info.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +97 lines, -0 lines 2 comments Download
A chrome/browser/policy/policy_status_info.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +86 lines, -0 lines 1 comment Download
A chrome/browser/resources/policy.css View 1 2 3 4 5 1 chunk +143 lines, -0 lines 0 comments Download
M chrome/browser/resources/policy.html View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +6 lines, -8 lines 0 comments Download
A chrome/browser/resources/policy.js View 1 2 3 4 5 6 1 chunk +160 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/chrome_web_ui_factory.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +3 lines, -0 lines 0 comments Download
A chrome/browser/ui/webui/policy_ui.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +46 lines, -0 lines 0 comments Download
A chrome/browser/ui/webui/policy_ui.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +109 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +6 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/common/url_constants.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/common/url_constants.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
Mattias Nissler (ping if slow)
first round of comments. http://codereview.chromium.org/7585036/diff/1/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): http://codereview.chromium.org/7585036/diff/1/chrome/app/generated_resources.grd#newcode4141 chrome/app/generated_resources.grd:4141: <message name="IDS_POLICY_TITLE" desc="Title for the ...
9 years, 4 months ago (2011-08-09 13:20:40 UTC) #1
simo
http://codereview.chromium.org/7585036/diff/1/chrome/browser/policy/configuration_policy_reader.cc File chrome/browser/policy/configuration_policy_reader.cc (right): http://codereview.chromium.org/7585036/diff/1/chrome/browser/policy/configuration_policy_reader.cc#newcode236 chrome/browser/policy/configuration_policy_reader.cc:236: I am leaking the PolicyStatusInfo pointers here, will fix. ...
9 years, 4 months ago (2011-08-09 21:03:02 UTC) #2
simo
Uploaded a new patch. http://codereview.chromium.org/7585036/diff/1/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): http://codereview.chromium.org/7585036/diff/1/chrome/app/generated_resources.grd#newcode4141 chrome/app/generated_resources.grd:4141: <message name="IDS_POLICY_TITLE" desc="Title for the ...
9 years, 4 months ago (2011-08-10 14:28:18 UTC) #3
James Hawkins
http://codereview.chromium.org/7585036/diff/6001/chrome/browser/resources/policy.css File chrome/browser/resources/policy.css (right): http://codereview.chromium.org/7585036/diff/6001/chrome/browser/resources/policy.css#newcode37 chrome/browser/resources/policy.css:37: #status-title, #policies-title { nit: One selector per line. http://codereview.chromium.org/7585036/diff/6001/chrome/browser/resources/policy.css#newcode48 ...
9 years, 4 months ago (2011-08-10 17:38:07 UTC) #4
simo
9 years, 4 months ago (2011-08-11 11:27:47 UTC) #5
simo
James, I have fixed the issues you pointed out but I have now changed the ...
9 years, 4 months ago (2011-08-11 17:12:52 UTC) #6
James Hawkins
http://codereview.chromium.org/7585036/diff/14001/chrome/browser/resources/policy.css File chrome/browser/resources/policy.css (right): http://codereview.chromium.org/7585036/diff/14001/chrome/browser/resources/policy.css#newcode74 chrome/browser/resources/policy.css:74: float: right; RTL http://codereview.chromium.org/7585036/diff/14001/chrome/browser/resources/policy.css#newcode78 chrome/browser/resources/policy.css:78: padding-right: 20px; RTL http://codereview.chromium.org/7585036/diff/14001/chrome/browser/resources/policy.css#newcode109 ...
9 years, 4 months ago (2011-08-11 21:16:30 UTC) #7
arv (Not doing code reviews)
http://codereview.chromium.org/7585036/diff/14001/chrome/browser/resources/policy.html File chrome/browser/resources/policy.html (right): http://codereview.chromium.org/7585036/diff/14001/chrome/browser/resources/policy.html#newcode68 chrome/browser/resources/policy.html:68: placeholder="Filter policies by name"> i18n http://codereview.chromium.org/7585036/diff/14001/chrome/browser/resources/policy.html#newcode86 chrome/browser/resources/policy.html:86: jsvalues=".className:Policy.isPolicySet($this)? ws ...
9 years, 4 months ago (2011-08-11 23:30:57 UTC) #8
Mattias Nissler (ping if slow)
Some more comments. Oh, and unit tests for ConfigurationPolicyReader would be nice to have, too ...
9 years, 4 months ago (2011-08-12 09:42:05 UTC) #9
simo
http://codereview.chromium.org/7585036/diff/14001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): http://codereview.chromium.org/7585036/diff/14001/chrome/app/generated_resources.grd#newcode4149 chrome/app/generated_resources.grd:4149: This page lists the policies that are currently enabled ...
9 years, 4 months ago (2011-08-16 17:36:34 UTC) #10
arv (Not doing code reviews)
http://codereview.chromium.org/7585036/diff/14001/chrome/browser/resources/policy.html File chrome/browser/resources/policy.html (right): http://codereview.chromium.org/7585036/diff/14001/chrome/browser/resources/policy.html#newcode68 chrome/browser/resources/policy.html:68: placeholder="Filter policies by name"> On 2011/08/16 17:36:34, simo wrote: ...
9 years, 4 months ago (2011-08-16 19:14:43 UTC) #11
simo
http://codereview.chromium.org/7585036/diff/26001/chrome/browser/resources/policy.css File chrome/browser/resources/policy.css (right): http://codereview.chromium.org/7585036/diff/26001/chrome/browser/resources/policy.css#newcode73 chrome/browser/resources/policy.css:73: float: right; On 2011/08/16 19:14:44, arv wrote: > why ...
9 years, 4 months ago (2011-08-17 10:22:09 UTC) #12
simo
http://codereview.chromium.org/7585036/diff/31001/chrome/browser/resources/policy.js File chrome/browser/resources/policy.js (right): http://codereview.chromium.org/7585036/diff/31001/chrome/browser/resources/policy.js#newcode96 chrome/browser/resources/policy.js:96: arv: I had to change this back to .style.display ...
9 years, 4 months ago (2011-08-18 17:39:15 UTC) #13
arv (Not doing code reviews)
LGTM
9 years, 4 months ago (2011-08-22 19:04:59 UTC) #14
Mattias Nissler (ping if slow)
Pretty close, the main comments are testing-related. http://codereview.chromium.org/7585036/diff/43001/chrome/browser/policy/configuration_policy_reader.cc File chrome/browser/policy/configuration_policy_reader.cc (right): http://codereview.chromium.org/7585036/diff/43001/chrome/browser/policy/configuration_policy_reader.cc#newcode23 chrome/browser/policy/configuration_policy_reader.cc:23: public: indentation ...
9 years, 4 months ago (2011-08-24 11:57:09 UTC) #15
simo
http://codereview.chromium.org/7585036/diff/43001/chrome/browser/policy/configuration_policy_reader.cc File chrome/browser/policy/configuration_policy_reader.cc (right): http://codereview.chromium.org/7585036/diff/43001/chrome/browser/policy/configuration_policy_reader.cc#newcode23 chrome/browser/policy/configuration_policy_reader.cc:23: public: On 2011/08/24 11:57:09, Mattias Nissler wrote: > indentation ...
9 years, 4 months ago (2011-08-25 10:06:36 UTC) #16
Mattias Nissler (ping if slow)
mostly happy, mainly nits. http://codereview.chromium.org/7585036/diff/46001/chrome/browser/policy/configuration_policy_reader.cc File chrome/browser/policy/configuration_policy_reader.cc (right): http://codereview.chromium.org/7585036/diff/46001/chrome/browser/policy/configuration_policy_reader.cc#newcode184 chrome/browser/policy/configuration_policy_reader.cc:184: : managed_platform_(managed_platform), only 4 spaces ...
9 years, 4 months ago (2011-08-25 11:01:01 UTC) #17
simo
http://codereview.chromium.org/7585036/diff/46001/chrome/browser/policy/configuration_policy_reader.cc File chrome/browser/policy/configuration_policy_reader.cc (right): http://codereview.chromium.org/7585036/diff/46001/chrome/browser/policy/configuration_policy_reader.cc#newcode184 chrome/browser/policy/configuration_policy_reader.cc:184: : managed_platform_(managed_platform), On 2011/08/25 11:01:02, Mattias Nissler wrote: > ...
9 years, 4 months ago (2011-08-25 13:29:46 UTC) #18
simo
9 years, 4 months ago (2011-08-25 13:30:29 UTC) #19
Mattias Nissler (ping if slow)
Getting there. Can you please also add a BUG= reference to the CL description? http://codereview.chromium.org/7585036/diff/46002/chrome/browser/policy/configuration_policy_reader.cc ...
9 years, 3 months ago (2011-08-29 11:24:40 UTC) #20
Mattias Nissler (ping if slow)
LGTM! I fired try jobs, if they're green we can ship it.
9 years, 3 months ago (2011-08-30 09:25:45 UTC) #21
simo
On 2011/08/30 09:25:45, Mattias Nissler wrote: > LGTM! I fired try jobs, if they're green ...
9 years, 3 months ago (2011-08-30 12:16:49 UTC) #22
Mattias Nissler (ping if slow)
Still looking good. Will fire a new round of try jobs.
9 years, 3 months ago (2011-08-30 12:29:35 UTC) #23
commit-bot: I haz the power
Change committed as 98977
9 years, 3 months ago (2011-08-31 16:10:10 UTC) #24
joth
FYI this broke the configuration_policy=0 build, we're looking into it :) http://build.chromium.org/p/chromium.fyi/builders/Chromium%20Linux%20Redux/builds/19144/steps/compile/logs/stdio A couple latent ...
9 years, 3 months ago (2011-09-05 11:09:38 UTC) #25
simo
9 years, 3 months ago (2011-09-07 12:20:37 UTC) #26
On 2011/09/05 11:09:38, joth wrote:
> FYI this broke the configuration_policy=0 build, we're looking into it :)
>
http://build.chromium.org/p/chromium.fyi/builders/Chromium%2520Linux%2520Redu...
> 
> A couple latent drive-by comments while I'm here...
> 
> Cheers!
> 
>
http://codereview.chromium.org/7585036/diff/58013/chrome/browser/policy/polic...
> File chrome/browser/policy/policy_status_info.cc (right):
> 
>
http://codereview.chromium.org/7585036/diff/58013/chrome/browser/policy/polic...
> chrome/browser/policy/policy_status_info.cc:72: ASCIIToUTF16("undefined") };
> to avoid having static class instances (against style guide; not thread safe;
> bloats atexit() work) it would be better to have an array of const char[] here
> and do the ASCIIToUTF16() call in the return statement.
> 
> Ditto in the fn below.
> 
>
http://codereview.chromium.org/7585036/diff/58013/chrome/browser/policy/polic...
> File chrome/browser/policy/policy_status_info.h (right):
> 
>
http://codereview.chromium.org/7585036/diff/58013/chrome/browser/policy/polic...
> chrome/browser/policy/policy_status_info.h:8: #include <map>
> not used?
> 
>
http://codereview.chromium.org/7585036/diff/58013/chrome/browser/policy/polic...
> chrome/browser/policy/policy_status_info.h:90: static const std::string
> kValueDictPath;
> note static class instances are not allowed in style guide. Could these be
const
> char[] ?

Thanks! I will fix these problems in the second CL for this which is currently
being reviewed or in an additional one.

Powered by Google App Engine
This is Rietveld 408576698