Skip to content

Commit

Permalink
chromiumchecker: Update to the new Chromium Dash API
Browse files Browse the repository at this point in the history
The old one apparently went offline, oops.

Signed-off-by: Ryan Gonzalez <[email protected]>
  • Loading branch information
refi64 committed Dec 7, 2023
1 parent 9dd1e12 commit 4ecba64
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 4ecba64

Please sign in to comment.