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

Issue 1692011: Implementation of managed policy: Policy Abstraction (Closed)

Created:
10 years, 8 months ago by danno
Modified:
9 years, 7 months ago
CC:
chromium-reviews, Bernhard Bauer, Paweł Hajdan Jr., ben+cc_chromium.org
Visibility:
Public.

Description

Implementation of managed policy abstraction on top of a preference store. This is preparation work for implementing platform-specific policy. BUG=none TEST=--gtest_filter=ConfigurationPolicyPrefStoreTest* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=47030

Patch Set 1 #

Total comments: 40

Patch Set 2 : incorporate reviewer feedback #

Patch Set 3 : fix style nits #

Total comments: 18

Patch Set 4 : incorporate review feedback, implement tests, add comments #

Total comments: 10

Patch Set 5 : add policy builder, review feedback #

Patch Set 6 : move windows implementation to another CL, cleanup #

Patch Set 7 : add missing file #

Total comments: 54

Patch Set 8 : review feedback #

Total comments: 6

Patch Set 9 : fix nits #

Patch Set 10 : removed windows from build that accidentally slipped in #

Total comments: 22

Patch Set 11 : review feedback #

Patch Set 12 : fix style nits #

Total comments: 2

Patch Set 13 : fix nits and unit tests #

Patch Set 14 : check no changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+255 lines, -9 lines) Patch
A chrome/browser/configuration_policy_pref_store.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +65 lines, -0 lines 0 comments Download
A chrome/browser/configuration_policy_pref_store.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +46 lines, -0 lines 0 comments Download
A chrome/browser/configuration_policy_pref_store_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +65 lines, -0 lines 0 comments Download
A chrome/browser/configuration_policy_provider.h View 4 5 6 7 8 9 10 1 chunk +32 lines, -0 lines 0 comments Download
A chrome/browser/configuration_policy_store.h View 8 9 10 1 chunk +33 lines, -0 lines 0 comments Download
M chrome/browser/dummy_pref_store.h View 4 5 6 2 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/json_pref_store.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/json_pref_store_unittest.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/pref_service.cc View 4 5 6 7 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/pref_store.h View 4 5 6 7 2 chunks +2 lines, -1 line 0 comments Download
chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
Bernhard Bauer
http://codereview.chromium.org/1692011/diff/1/4 File chrome/browser/configuration_policy_pref_store.h (right): http://codereview.chromium.org/1692011/diff/1/4#newcode33 chrome/browser/configuration_policy_pref_store.h:33: kSettingProxy = 1, Why are we using explicit values ...
10 years, 8 months ago (2010-04-28 15:42:26 UTC) #1
tfarina (gmail-do not use)
http://codereview.chromium.org/1692011/diff/1/2 File chrome/browser/configuration_policy.h (right): http://codereview.chromium.org/1692011/diff/1/2#newcode30 chrome/browser/configuration_policy.h:30: }; nit: DISALLOW_COPY_AND_ASSING? http://codereview.chromium.org/1692011/diff/1/3 File chrome/browser/configuration_policy_pref_store.cc (right): http://codereview.chromium.org/1692011/diff/1/3#newcode39 chrome/browser/configuration_policy_pref_store.cc:39: ...
10 years, 8 months ago (2010-04-28 16:01:57 UTC) #2
Mattias Nissler (ping if slow)
Some minor things I saw when I read through the code. http://codereview.chromium.org/1692011/diff/1/2 File chrome/browser/configuration_policy.h (right): ...
10 years, 8 months ago (2010-04-28 17:49:20 UTC) #3
danno
This is still a work in progress not ready to commit, but I've cleaned up ...
10 years, 7 months ago (2010-04-30 13:32:09 UTC) #4
tfarina (gmail-do not use)
http://codereview.chromium.org/1692011/diff/37001/8003 File chrome/browser/configuration_policy_pref_store.cc (right): http://codereview.chromium.org/1692011/diff/37001/8003#newcode13 chrome/browser/configuration_policy_pref_store.cc:13: : prefs_(new DictionaryValue()) { nit: indent 4 spaces. http://codereview.chromium.org/1692011/diff/37001/8004 ...
10 years, 7 months ago (2010-04-30 16:39:37 UTC) #5
Mattias Nissler (ping if slow)
some notes from the first read. http://codereview.chromium.org/1692011/diff/70001/71006 File chrome/browser/configuration_policy_provider_win.cc (right): http://codereview.chromium.org/1692011/diff/70001/71006#newcode39 chrome/browser/configuration_policy_provider_win.cc:39: DCHECK(buffer_size); incorrect indentiation ...
10 years, 7 months ago (2010-05-05 15:09:32 UTC) #6
danno
please review in preparation for commit. thanks! http://codereview.chromium.org/1692011/diff/37001/8003 File chrome/browser/configuration_policy_pref_store.cc (right): http://codereview.chromium.org/1692011/diff/37001/8003#newcode13 chrome/browser/configuration_policy_pref_store.cc:13: : prefs_(new ...
10 years, 7 months ago (2010-05-07 08:34:59 UTC) #7
Pam (message me for reviews)
Enjoy! - Pam http://codereview.chromium.org/1692011/diff/107001/105002 File chrome/browser/configuration_policy_builder.h (right): http://codereview.chromium.org/1692011/diff/107001/105002#newcode5 chrome/browser/configuration_policy_builder.h:5: #ifndef CHROME_BROWSER_CONFIGURATION_POLICY_H_ ..._POLICY_BUILDER_H_ http://codereview.chromium.org/1692011/diff/107001/105002#newcode9 chrome/browser/configuration_policy_builder.h:9: I'm ...
10 years, 7 months ago (2010-05-07 12:30:33 UTC) #8
Bernhard Bauer
http://codereview.chromium.org/1692011/diff/107001/105004 File chrome/browser/configuration_policy_pref_store.h (right): http://codereview.chromium.org/1692011/diff/107001/105004#newcode35 chrome/browser/configuration_policy_pref_store.h:35: // Overridden I've mostly seen comments of the form ...
10 years, 7 months ago (2010-05-07 12:42:40 UTC) #9
tfarina (gmail-do not use)
http://codereview.chromium.org/1692011/diff/107001/105004 File chrome/browser/configuration_policy_pref_store.h (right): http://codereview.chromium.org/1692011/diff/107001/105004#newcode35 chrome/browser/configuration_policy_pref_store.h:35: // Overridden On 2010/05/07 12:42:40, Bernhard Bauer wrote: > ...
10 years, 7 months ago (2010-05-07 15:24:22 UTC) #10
tfarina (gmail-do not use)
http://codereview.chromium.org/1692011/diff/107001/105004 File chrome/browser/configuration_policy_pref_store.h (right): http://codereview.chromium.org/1692011/diff/107001/105004#newcode32 chrome/browser/configuration_policy_pref_store.h:32: : provider_(provider) {} nit: I know this is just ...
10 years, 7 months ago (2010-05-07 15:36:18 UTC) #11
danno
I hope I got all of the feedback address, either in a comment or code. ...
10 years, 7 months ago (2010-05-07 16:08:49 UTC) #12
tfarina (gmail-do not use)
http://codereview.chromium.org/1692011/diff/116001/117001 File chrome/browser/configuration_policy_pref_store.cc (right): http://codereview.chromium.org/1692011/diff/116001/117001#newcode29 chrome/browser/configuration_policy_pref_store.cc:29: { nit: put the { in the of DictionaryValue()) ...
10 years, 7 months ago (2010-05-07 16:21:05 UTC) #13
Pam (message me for reviews)
Mostly nits, a few small things to argue about. :) - Pam http://codereview.chromium.org/1692011/diff/118002/121001 File chrome/browser/configuration_policy_pref_store.cc ...
10 years, 7 months ago (2010-05-10 13:31:57 UTC) #14
danno
Dear Chromium Gods: I have been penitent. I have been diffident. Oh, how I have ...
10 years, 7 months ago (2010-05-11 09:28:39 UTC) #15
Pam (message me for reviews)
LGTM once the trybots pass, with one tiny nit. - Pam http://codereview.chromium.org/1692011/diff/112003/129001 File chrome/browser/configuration_policy_pref_store.cc (right): ...
10 years, 7 months ago (2010-05-11 10:05:33 UTC) #16
tfarina
10 years, 7 months ago (2010-05-11 15:53:27 UTC) #17
http://codereview.chromium.org/1692011/diff/112003/129002
File chrome/browser/configuration_policy_pref_store.h (right):

http://codereview.chromium.org/1692011/diff/112003/129002#newcode50
chrome/browser/configuration_policy_pref_store.h:50: const wchar_t*
preference_path;
nit: please, could you add a TODO(tfarina), to convert this to FilePath?

Powered by Google App Engine
This is Rietveld 408576698