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

Issue 47513018: Make the internal storage of policy::Schemas ref counted. (Closed)

Created:
7 years, 1 month ago by Joao da Silva
Modified:
7 years, 1 month ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org, bartfab (slow)
Base URL:
https://chromium.googlesource.com/chromium/src.git@chrome-policy-schema-4-new-generate
Visibility:
Public.

Description

Make the internal storage policy::Schemas ref counted. The policy Schemas are used to represent the expected data types of policy values. Making their internal storage refcounted will allow passing them to background threads that use them to validate data being loaded, while the UI thread may be concurrently loading a new Schema for the same component. This change makes Schema directly reference the InternalStorage struct, so that SchemaOwner is not necessary anymore. BUG=270667 R=dconnelly@chromium.org, kalman@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=233596

Patch Set 1 #

Total comments: 8

Patch Set 2 : 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 (+310 lines, -290 lines) Patch
M chrome/browser/extensions/api/storage/managed_value_store_cache.cc View 3 chunks +6 lines, -7 lines 0 comments Download
M chrome/browser/policy/browser_policy_connector.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/policy/cloud/component_cloud_policy_service_unittest.cc View 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/browser/policy/generate_policy_source_unittest.cc View 1 chunk +2 lines, -5 lines 0 comments Download
M chrome/browser/policy/policy_domain_descriptor.h View 1 chunk +1 line, -5 lines 0 comments Download
M chrome/browser/policy/policy_domain_descriptor.cc View 2 chunks +4 lines, -10 lines 0 comments Download
M chrome/browser/policy/policy_domain_descriptor_unittest.cc View 3 chunks +7 lines, -7 lines 0 comments Download
M chrome/browser/policy/policy_service_impl_unittest.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/common/extensions/api/storage/storage_schema_manifest_handler.h View 1 2 3 2 chunks +5 lines, -5 lines 0 comments Download
M chrome/common/extensions/api/storage/storage_schema_manifest_handler.cc View 1 2 3 chunks +7 lines, -7 lines 0 comments Download
M components/policy/core/common/schema.h View 1 4 chunks +26 lines, -44 lines 0 comments Download
M components/policy/core/common/schema.cc View 5 chunks +192 lines, -167 lines 0 comments Download
M components/policy/core/common/schema_unittest.cc View 7 chunks +52 lines, -25 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Joao da Silva
Please review: @Daniel: whole thing. Note that it builds on https://codereview.chromium.org/31273002, and these and other ...
7 years, 1 month ago (2013-10-29 14:55:39 UTC) #1
not at google - send to devlin
extensions lgtm
7 years, 1 month ago (2013-10-29 15:05:30 UTC) #2
dconnelly
lgtm https://codereview.chromium.org/47513018/diff/1/chrome/common/extensions/api/storage/storage_schema_manifest_handler.h File chrome/common/extensions/api/storage/storage_schema_manifest_handler.h (right): https://codereview.chromium.org/47513018/diff/1/chrome/common/extensions/api/storage/storage_schema_manifest_handler.h#newcode24 chrome/common/extensions/api/storage/storage_schema_manifest_handler.h:24: // If the schema is invalid then the ...
7 years, 1 month ago (2013-10-29 16:43:57 UTC) #3
Joao da Silva
Thanks for the review! https://codereview.chromium.org/47513018/diff/1/chrome/common/extensions/api/storage/storage_schema_manifest_handler.h File chrome/common/extensions/api/storage/storage_schema_manifest_handler.h (right): https://codereview.chromium.org/47513018/diff/1/chrome/common/extensions/api/storage/storage_schema_manifest_handler.h#newcode24 chrome/common/extensions/api/storage/storage_schema_manifest_handler.h:24: // If the schema is ...
7 years, 1 month ago (2013-10-29 20:38:41 UTC) #4
Joao da Silva
7 years, 1 month ago (2013-11-07 12:43:58 UTC) #5
Message was sent while issue was closed.
Committed patchset #6 manually as r233596 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698