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

Unified Diff: win_toolchain/get_toolchain_if_necessary.py

Issue 382373002: Add CanAccessToolchainBucket() to ways to use GStorage. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: Fix column width error. Created 6 years, 5 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: win_toolchain/get_toolchain_if_necessary.py
diff --git a/win_toolchain/get_toolchain_if_necessary.py b/win_toolchain/get_toolchain_if_necessary.py
index dcf1125eb6ad92dd82544edca591e24ec22f6b4f..522a6972ea8b64a115d79f6c0030251af44ee2d8 100755
--- a/win_toolchain/get_toolchain_if_necessary.py
+++ b/win_toolchain/get_toolchain_if_necessary.py
@@ -224,7 +224,9 @@ def main():
current_hash = CalculateHash(target_dir)
if current_hash not in desired_hashes:
should_use_gs = False
- if HaveSrcInternalAccess() or LooksLikeGoogler():
+ if (HaveSrcInternalAccess() or
+ LooksLikeGoogler() or
+ CanAccessToolchainBucket()):
should_use_gs = True
if not CanAccessToolchainBucket():
RequestGsAuthentication()
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698