Chromium Code Reviews
DescriptionExtensions: Fix DocServer assert failures.
Currently, there are a couple of assert failures happening for the DocServer.
Two issues are involved:
- r446160 updated tools/json_schema_compiler/model.py. It changed the logic to
assign the callback for a function, so that only the last parameter function
of a function could be recognised as a callback. This broke some DocServer
tests and hence the extension presubmit script.
- Recently the API endpoint
https://omahaproxy.appspot.com/history.json?channel=dev&os=win&json=1 that
we use to fetch the branch for a particular Chrome version, stopped
providing info. for version 15. This led to an assert failure when
generating the Availability info. for the Webstore API.
This CL fixes the issues so that the extension presubmit tests pass. For issue
1, a new category type is introduced to APICategorizer for the internal APIs. It
is ensured that the API data source does not generate info. for internal APIs
which are never documented. Existing tests are updated to work around the fact
that only the last parameter of a function can be recognised as a callback.
For issue 2, it is ensured that the assert failure is not reached. However, the
core issue (omahaproxy endpoint not providing details of all Chrome versions)
still needs to be tackled.
BUG=696767, 700234
Review-Url: https://codereview.chromium.org/2738623003
Cr-Commit-Position: refs/heads/master@{#456767}
Committed: https://chromium.googlesource.com/chromium/src/+/08614915649c30c0278a9b154825e370b819a6de
Patch Set 1 #Patch Set 2 : -- #
Total comments: 3
Patch Set 3 : Nit. #
Total comments: 10
Patch Set 4 : Address review. #
Dependent Patchsets: Messages
Total messages: 27 (19 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||