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

Issue 6002015: Policy: generate boilerplate policy type and constant code. (Closed)

Created:
9 years, 11 months ago by danno
Modified:
9 years, 7 months ago
CC:
chromium-reviews, pam+watch_chromium.org, Paweł Hajdan Jr., amit
Visibility:
Public.

Description

Policy: generate boilerplate policy type and constant code. This is the first step to being able to re-constitute policy from a non-generic protobuf in a policy request in a fully automated way (i.e. the code for the process can be generated). The non-generic protobuf is required for automatic merging of policy on the server-side. BUG=68309 TEST=existing policy/provider tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=72784

Patch Set 1 #

Patch Set 2 : fix build #

Total comments: 18

Patch Set 3 : review feedback #

Patch Set 4 : tweaks and right diff #

Total comments: 12

Patch Set 5 : review feedback #

Patch Set 6 : remove obsolete files #

Patch Set 7 : fix all builds #

Patch Set 8 : fix nacl build #

Total comments: 9

Patch Set 9 : review feedback #

Patch Set 10 : localize gyp variable #

Total comments: 26

Patch Set 11 : review feedback #

Patch Set 12 : fix the nit #

Patch Set 13 : whitespace change to make sure common_constants gets recompiled #

Patch Set 14 : merge with ToT #

Unified diffs Side-by-side diffs Delta from patch set Stats (+338 lines, -309 lines) Patch
M chrome/app/DEPS View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/app/breakpad_mac.mm View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/app/breakpad_win.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/app/policy/policy_templates.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +88 lines, -0 lines 0 comments Download
M chrome/app/policy/policy_templates.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +13 lines, -0 lines 0 comments Download
M chrome/browser/DEPS View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/policy/asynchronous_policy_provider_unittest.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/policy/config_dir_policy_provider_unittest.cc View 1 2 3 4 5 6 7 8 4 chunks +9 lines, -9 lines 0 comments Download
M chrome/browser/policy/configuration_policy_pref_store.cc View 1 2 3 4 5 6 7 8 5 chunks +17 lines, -17 lines 0 comments Download
M chrome/browser/policy/configuration_policy_pref_store_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +8 lines, -8 lines 0 comments Download
M chrome/browser/policy/configuration_policy_provider_delegate_win.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/policy/configuration_policy_provider_mac_unittest.cc View 1 2 3 4 5 6 7 8 4 chunks +9 lines, -9 lines 0 comments Download
M chrome/browser/policy/configuration_policy_provider_win_unittest.cc View 1 2 3 4 5 6 7 8 4 chunks +9 lines, -9 lines 0 comments Download
M chrome/browser/policy/configuration_policy_store_interface.h View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -61 lines 0 comments Download
M chrome/browser/policy/device_management_policy_provider_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/policy/file_based_policy_provider_unittest.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/chrome.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +3 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_common.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/chrome_exe.gypi View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -1 line 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 18 chunks +18 lines, -0 lines 0 comments Download
M chrome/common/chrome_paths.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
D chrome/common/policy_constants.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -90 lines 0 comments Download
D chrome/common/policy_constants.cc View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -94 lines 0 comments Download
M chrome/common_constants.gypi View 1 2 3 4 5 1 chunk +0 lines, -2 lines 0 comments Download
A chrome/tools/build/generate_policy_source.py View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +142 lines, -0 lines 0 comments Download
M chrome_frame/chrome_frame.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -0 lines 0 comments Download
M chrome_frame/policy_settings.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome_frame/test/policy_settings_unittest.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 14 (0 generated)
danno
not done yet, but I want to give you a flavor of what I'm up ...
9 years, 11 months ago (2011-01-03 16:58:41 UTC) #1
gfeher
At first sight, the overall approach looks right. http://codereview.chromium.org/6002015/diff/5001/chrome/app/policy/policy_templates.gypi File chrome/app/policy/policy_templates.gypi (right): http://codereview.chromium.org/6002015/diff/5001/chrome/app/policy/policy_templates.gypi#newcode101 chrome/app/policy/policy_templates.gypi:101: { ...
9 years, 11 months ago (2011-01-04 12:58:05 UTC) #2
gfeher
http://codereview.chromium.org/6002015/diff/5001/chrome/tools/build/generate_policy_source.py File chrome/tools/build/generate_policy_source.py (right): http://codereview.chromium.org/6002015/diff/5001/chrome/tools/build/generate_policy_source.py#newcode147 chrome/tools/build/generate_policy_source.py:147: f.closed Okay, sorry, now I've looked up the with ...
9 years, 11 months ago (2011-01-04 13:13:17 UTC) #3
danno
review feedback addressed http://codereview.chromium.org/6002015/diff/5001/chrome/app/policy/policy_templates.gypi File chrome/app/policy/policy_templates.gypi (right): http://codereview.chromium.org/6002015/diff/5001/chrome/app/policy/policy_templates.gypi#newcode101 chrome/app/policy/policy_templates.gypi:101: { On 2011/01/04 12:58:06, gfeher wrote: ...
9 years, 11 months ago (2011-01-11 13:03:48 UTC) #4
gfeher
LG http://codereview.chromium.org/6002015/diff/25001/chrome/app/policy/policy_templates.grd File chrome/app/policy/policy_templates.grd (right): http://codereview.chromium.org/6002015/diff/25001/chrome/app/policy/policy_templates.grd#newcode783 chrome/app/policy/policy_templates.grd:783: Disabling this setting allows cookies to be set ...
9 years, 11 months ago (2011-01-11 15:43:58 UTC) #5
Jakob Kummerow
a couple o' nits http://codereview.chromium.org/6002015/diff/59001/chrome/tools/build/generate_policy_source.py File chrome/tools/build/generate_policy_source.py (right): http://codereview.chromium.org/6002015/diff/59001/chrome/tools/build/generate_policy_source.py#newcode1 chrome/tools/build/generate_policy_source.py:1: #!/usr/bin/python2.4 python2.4 is a bit ...
9 years, 11 months ago (2011-01-14 14:59:21 UTC) #6
danno
Please review again. Brad, can you please look at the .gyp magic to make the ...
9 years, 11 months ago (2011-01-20 17:18:32 UTC) #7
bradn
http://codereview.chromium.org/6002015/diff/79001/chrome/chrome_browser.gypi File chrome/chrome_browser.gypi (right): http://codereview.chromium.org/6002015/diff/79001/chrome/chrome_browser.gypi#newcode54 chrome/chrome_browser.gypi:54: '<(policy_out_dir)', I don't think you want to litter these ...
9 years, 11 months ago (2011-01-20 17:57:01 UTC) #8
danno
addressed feedback http://codereview.chromium.org/6002015/diff/79001/chrome/chrome_browser.gypi File chrome/chrome_browser.gypi (right): http://codereview.chromium.org/6002015/diff/79001/chrome/chrome_browser.gypi#newcode54 chrome/chrome_browser.gypi:54: '<(policy_out_dir)', On 2011/01/20 17:57:02, bradn wrote: > ...
9 years, 11 months ago (2011-01-24 18:14:22 UTC) #9
bradn
LGTM on the gyp.
9 years, 11 months ago (2011-01-24 18:17:58 UTC) #10
Mattias Nissler (ping if slow)
Some comments. http://codereview.chromium.org/6002015/diff/89001/chrome/chrome.gyp File chrome/chrome.gyp (right): http://codereview.chromium.org/6002015/diff/89001/chrome/chrome.gyp#newcode41 chrome/chrome.gyp:41: 'policy_win64', why this? http://codereview.chromium.org/6002015/diff/89001/chrome/chrome.gyp#newcode853 chrome/chrome.gyp:853: 'policy', syncapi ...
9 years, 11 months ago (2011-01-25 11:42:21 UTC) #11
Mattias Nissler (ping if slow)
Oh, please disregard the ^.*\.gypi?^ comments, I forgot to remove them. On 2011/01/25 11:42:21, Mattias ...
9 years, 11 months ago (2011-01-25 12:17:00 UTC) #12
danno
address mnisslers feedback http://codereview.chromium.org/6002015/diff/89001/chrome/chrome.gyp File chrome/chrome.gyp (right): http://codereview.chromium.org/6002015/diff/89001/chrome/chrome.gyp#newcode41 chrome/chrome.gyp:41: 'policy_win64', The 64-bit nacl libraries need ...
9 years, 11 months ago (2011-01-25 14:27:28 UTC) #13
Mattias Nissler (ping if slow)
9 years, 11 months ago (2011-01-25 16:29:35 UTC) #14
LGTM with a nit.

Powered by Google App Engine
This is Rietveld 408576698