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

Unified Diff: chrome/test/chromedriver/archive.py

Issue 1907993003: [chromedriver] Use snapshot instead of continuous archive, drop M48 and add M51. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove BLINK_SNAPSHOT Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/test/chromedriver/chrome/version.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/chromedriver/archive.py
diff --git a/chrome/test/chromedriver/archive.py b/chrome/test/chromedriver/archive.py
index 57feb1113bb4fee04c61e432a3a1eab57ce31e63..4ec514675f72fea6af1963c0639603acd96fd243 100644
--- a/chrome/test/chromedriver/archive.py
+++ b/chrome/test/chromedriver/archive.py
@@ -2,7 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-"""Downloads items from the Chromium continuous archive."""
+"""Downloads items from the Chromium snapshot archive."""
import json
import os
@@ -13,9 +13,9 @@ import urllib2
import util
-CHROME_48_REVISION = '359663'
-CHROME_49_REVISION = '369874'
-CHROME_50_REVISION = '377898'
+CHROME_49_REVISION = '369932'
+CHROME_50_REVISION = '378110'
+CHROME_51_REVISION = '386266'
_SITE = 'http://commondatastorage.googleapis.com'
GS_GIT_LOG_URL = (
@@ -24,29 +24,27 @@ GS_SEARCH_PATTERN = r'Cr-Commit-Position: refs/heads/master@{#(\d+)}'
class Site(object):
- CONTINUOUS = _SITE + '/chromium-browser-continuous'
CHROMIUM_SNAPSHOT = _SITE + '/chromium-browser-snapshots'
- BLINK_SNAPSHOT = _SITE + '/chromium-webkit-snapshots'
CHROMIUM_LINUX = _SITE + '/chromium-linux-archive/chromium.linux'
-def GetLatestRevision(site=Site.CONTINUOUS):
+def GetLatestRevision(site=Site.CHROMIUM_SNAPSHOT):
"""Returns the latest revision (as a string) available for this platform.
Args:
- site: the archive site to check against, default to the continuous one.
+ site: the archive site to check against, default to the snapshot one.
"""
url = site + '/%s/LAST_CHANGE'
return urllib.urlopen(url % _GetDownloadPlatform()).read()
-def DownloadChrome(revision, dest_dir, site=Site.CONTINUOUS):
+def DownloadChrome(revision, dest_dir, site=Site.CHROMIUM_SNAPSHOT):
"""Downloads the packaged Chrome from the archive to the given directory.
Args:
revision: the revision of Chrome to download.
dest_dir: the directory to download Chrome to.
- site: the archive site to download from, default to the continuous one.
+ site: the archive site to download from, default to the snapshot one.
Returns:
The path to the unzipped Chrome binary.
« no previous file with comments | « no previous file | chrome/test/chromedriver/chrome/version.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698