OLD | NEW |
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 """Downloads items from the Chromium continuous archive.""" | 5 """Downloads items from the Chromium continuous archive.""" |
6 | 6 |
7 import os | 7 import os |
8 import platform | 8 import platform |
9 import urllib | 9 import urllib |
10 | 10 |
11 import util | 11 import util |
12 | 12 |
13 CHROME_34_REVISION = '251854' | |
14 CHROME_35_REVISION = '260135' | 13 CHROME_35_REVISION = '260135' |
15 CHROME_36_REVISION = '269696' | 14 CHROME_36_REVISION = '269696' |
| 15 CHROME_37_REVISION = '278933' |
16 | 16 |
17 _SITE = 'http://commondatastorage.googleapis.com' | 17 _SITE = 'http://commondatastorage.googleapis.com' |
18 | 18 |
19 | 19 |
20 class Site(object): | 20 class Site(object): |
21 CONTINUOUS = _SITE + '/chromium-browser-continuous' | 21 CONTINUOUS = _SITE + '/chromium-browser-continuous' |
22 CHROMIUM_SNAPSHOT = _SITE + '/chromium-browser-snapshots' | 22 CHROMIUM_SNAPSHOT = _SITE + '/chromium-browser-snapshots' |
23 BLINK_SNAPSHOT = _SITE + '/chromium-webkit-snapshots' | 23 BLINK_SNAPSHOT = _SITE + '/chromium-webkit-snapshots' |
24 | 24 |
25 | 25 |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 """Returns the site to download snapshot build according to the platform. | 88 """Returns the site to download snapshot build according to the platform. |
89 | 89 |
90 For Linux 32-bit, it is chromium snapshot build. | 90 For Linux 32-bit, it is chromium snapshot build. |
91 For other platform, it is blink snapshot build. | 91 For other platform, it is blink snapshot build. |
92 Because there is no linux32 blink snapshot build. | 92 Because there is no linux32 blink snapshot build. |
93 """ | 93 """ |
94 if _GetDownloadPlatform() in ('Linux', 'Linux_x64', 'Mac'): | 94 if _GetDownloadPlatform() in ('Linux', 'Linux_x64', 'Mac'): |
95 return Site.CHROMIUM_SNAPSHOT | 95 return Site.CHROMIUM_SNAPSHOT |
96 else: | 96 else: |
97 return Site.BLINK_SNAPSHOT | 97 return Site.BLINK_SNAPSHOT |
OLD | NEW |