Skip to content

Commit

Permalink
Merge pull request #401 from refi64/wip/refi64/chromium-url
Browse files Browse the repository at this point in the history
chromiumchecker: Update to the new Chromium Dash API
  • Loading branch information
wjt committed Dec 8, 2023
2 parents 9dd1e12 + 4ecba64 commit 6bef8dd
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/checkers/chromiumchecker.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,8 @@ class ChromiumChecker(Checker):
"required": ["component"],
}

_CHROMIUM_VERSIONS_URL = "https://omahaproxy.appspot.com/all.json"
_CHROMIUM_VERSIONS_PARAMS = {"os": "linux", "channel": "stable"}
_CHROMIUM_VERSIONS_URL = "https://chromiumdash.appspot.com/fetch_releases"
_CHROMIUM_VERSIONS_PARAMS = {"platform": "Linux", "channel": "Stable", "num": "1"}

async def _get_latest_chromium(self) -> str:
async with self.session.get(
Expand All @@ -172,8 +172,7 @@ async def _get_latest_chromium(self) -> str:
result = await response.json()

assert len(result) == 1, result
assert len(result[0]["versions"]) == 1, result
return result[0]["versions"][0]["current_version"]
return result[0]["version"]

async def check(self, external_data: ExternalBase):
assert self.should_check(external_data)
Expand Down

0 comments on commit 6bef8dd

Please sign in to comment.