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

Issue 2846553003: Extensions: Clarify ManifestHandler interface expectations. (Closed)

Created:
3 years, 8 months ago by karandeepb
Modified:
3 years, 8 months ago
Reviewers:
lazyboy
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Extensions: Clarify ManifestHandler interface expectations. ManifestHandler::Parse is called from within Extension::Create and may or may not be called on a thread which supports IO. On the other hand, ManifestHandler::ValidateExtension is called through file_util::ValidateExtension and hence is always called on a thread supporting IO. There are assumptions in the code relying on this as well. This CL documents the same in the ManifestHandler header. BUG=None. Review-Url: https://codereview.chromium.org/2846553003 Cr-Commit-Position: refs/heads/master@{#467526} Committed: https://chromium.googlesource.com/chromium/src/+/f47da77f6fe0df56a7cf213230a6da1ef105617f

Patch Set 1 #

Total comments: 6

Patch Set 2 : Nits. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -1 line) Patch
M extensions/common/manifest_handler.h View 1 2 chunks +4 lines, -1 line 2 comments Download
M extensions/common/manifest_handler.cc View 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (7 generated)
karandeepb
PTAL Istiaque. This wasn't evident to me from the header. See StorageSchemaManifestHandler::Validate for an example ...
3 years, 8 months ago (2017-04-26 21:36:24 UTC) #5
lazyboy
https://codereview.chromium.org/2846553003/diff/1/extensions/common/manifest_handler.cc File extensions/common/manifest_handler.cc (right): https://codereview.chromium.org/2846553003/diff/1/extensions/common/manifest_handler.cc#newcode94 extensions/common/manifest_handler.cc:94: base::ThreadRestrictions::AssertIOAllowed(); Can we put the IO comment for this ...
3 years, 8 months ago (2017-04-26 22:06:54 UTC) #6
karandeepb
PTAL. https://codereview.chromium.org/2846553003/diff/1/extensions/common/manifest_handler.cc File extensions/common/manifest_handler.cc (right): https://codereview.chromium.org/2846553003/diff/1/extensions/common/manifest_handler.cc#newcode94 extensions/common/manifest_handler.cc:94: base::ThreadRestrictions::AssertIOAllowed(); On 2017/04/26 22:06:53, lazyboy wrote: > Can ...
3 years, 8 months ago (2017-04-26 22:20:00 UTC) #7
lazyboy
lgtm https://codereview.chromium.org/2846553003/diff/20001/extensions/common/manifest_handler.h File extensions/common/manifest_handler.h (right): https://codereview.chromium.org/2846553003/diff/20001/extensions/common/manifest_handler.h#newcode32 extensions/common/manifest_handler.h:32: // This does not perform any IO operations. ...
3 years, 8 months ago (2017-04-26 22:53:03 UTC) #8
karandeepb
https://codereview.chromium.org/2846553003/diff/20001/extensions/common/manifest_handler.h File extensions/common/manifest_handler.h (right): https://codereview.chromium.org/2846553003/diff/20001/extensions/common/manifest_handler.h#newcode32 extensions/common/manifest_handler.h:32: // This does not perform any IO operations. On ...
3 years, 8 months ago (2017-04-26 22:57:38 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2846553003/20001
3 years, 8 months ago (2017-04-26 23:33:25 UTC) #11
commit-bot: I haz the power
3 years, 8 months ago (2017-04-27 00:30:24 UTC) #14
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/f47da77f6fe0df56a7cf213230a6...

Powered by Google App Engine
This is Rietveld 408576698