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

Issue 50143010: Added a SchemaMap. (Closed)

Created:
7 years, 1 month ago by Joao da Silva
Modified:
7 years, 1 month ago
CC:
chromium-reviews, dconnelly
Base URL:
https://chromium.googlesource.com/chromium/src.git@chrome-policy-schema-5-ref-counted-schema
Visibility:
Public.

Description

Added a SchemaMap. A Schema defines the expected types of policy values. A SchemaMap maps an identifier to its Schema. This identifier indicates which component is the Schema for (e.g. the browser, or an extension). This class will supersede the PolicyDomainDescriptor, which will be removed. This class is refcounted so that any thread can work with the schemas (i.e. a background worker can use Schema data to load the corresponding policies), and is immutable. Updated version must make a copy of the map, modify it, and be published as a new SchemaMap. This is handled by a subsequent component. BUG=270667 R=bartfab@chromium.org, dconnelly@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=233597

Patch Set 1 #

Total comments: 16

Patch Set 2 : rebased, addressed comments #

Patch Set 3 : rebase #

Patch Set 4 : rebase #

Patch Set 5 : rebase #

Patch Set 6 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+434 lines, -188 lines) Patch
M chrome/browser/policy/policy_domain_descriptor.cc View 1 2 chunks +1 line, -33 lines 0 comments Download
A chrome/browser/policy/schema_map.h View 1 1 chunk +53 lines, -0 lines 0 comments Download
A chrome/browser/policy/schema_map.cc View 1 1 chunk +72 lines, -0 lines 0 comments Download
A + chrome/browser/policy/schema_map_unittest.cc View 1 8 chunks +116 lines, -76 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M components/policy/core/common/schema.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M components/policy/core/common/schema.cc View 1 1 chunk +28 lines, -0 lines 0 comments Download
M components/policy/core/common/schema_unittest.cc View 1 9 chunks +158 lines, -79 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Joao da Silva
@Bartosz: please review @Daniel: FYI Thanks!
7 years, 1 month ago (2013-10-29 20:29:49 UTC) #1
Joao da Silva
@Bartosz: please review. Thanks!
7 years, 1 month ago (2013-10-30 11:03:39 UTC) #2
bartfab (slow)
https://codereview.chromium.org/50143010/diff/1/chrome/browser/policy/schema_map.h File chrome/browser/policy/schema_map.h (right): https://codereview.chromium.org/50143010/diff/1/chrome/browser/policy/schema_map.h#newcode19 chrome/browser/policy/schema_map.h:19: typedef std::map<std::string, Schema> ComponentMap; Is a forward-declaration of Schema ...
7 years, 1 month ago (2013-10-30 12:34:49 UTC) #3
dconnelly
lgtm https://codereview.chromium.org/50143010/diff/1/chrome/browser/policy/schema_map_unittest.cc File chrome/browser/policy/schema_map_unittest.cc (right): https://codereview.chromium.org/50143010/diff/1/chrome/browser/policy/schema_map_unittest.cc#newcode52 chrome/browser/policy/schema_map_unittest.cc:52: return NULL; this shouldn't ever happen, right? why ...
7 years, 1 month ago (2013-10-31 10:04:16 UTC) #4
Joao da Silva
Bartosz: PTAL https://codereview.chromium.org/50143010/diff/1/chrome/browser/policy/schema_map.h File chrome/browser/policy/schema_map.h (right): https://codereview.chromium.org/50143010/diff/1/chrome/browser/policy/schema_map.h#newcode19 chrome/browser/policy/schema_map.h:19: typedef std::map<std::string, Schema> ComponentMap; On 2013/10/30 12:34:49, ...
7 years, 1 month ago (2013-10-31 13:34:55 UTC) #5
bartfab (slow)
lgtm
7 years, 1 month ago (2013-10-31 13:43:07 UTC) #6
Joao da Silva
7 years, 1 month ago (2013-11-07 12:46:29 UTC) #7
Message was sent while issue was closed.
Committed patchset #6 manually as r233597 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698