| Index: chrome/test/chromedriver/archive.py
|
| diff --git a/chrome/test/chromedriver/archive.py b/chrome/test/chromedriver/archive.py
|
| index 24854d5063176450a95a18fa6af1b4f3ca39b90d..93ca15f7391ec4d06209f645f9bfd6d252b11d36 100644
|
| --- a/chrome/test/chromedriver/archive.py
|
| +++ b/chrome/test/chromedriver/archive.py
|
| @@ -79,3 +79,19 @@ def _GetDownloadPlatform():
|
| return 'Linux_x64'
|
| else:
|
| return 'Linux'
|
| +
|
| +def GetLatestSnapshotVersion():
|
| + """Returns the latest revision of snapshot build."""
|
| + return GetLatestRevision(GetSnapshotDownloadSite())
|
| +
|
| +def GetSnapshotDownloadSite():
|
| + """Returns the site to download snapshot build according to the platform.
|
| +
|
| + For Linux 32-bit, it is chromium snapshot build.
|
| + For other platform, it is blink snapshot build.
|
| + Because there is no linux32 blink snapshot build.
|
| + """
|
| + if _GetDownloadPlatform() == 'Linux':
|
| + return Site.CHROMIUM_SNAPSHOT
|
| + else:
|
| + return Site.BLINK_SNAPSHOT
|
|
|