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

Unified Diff: build/win_is_xtree_patched.py

Issue 836393002: Fix xtree patch check, and in turn C4702 disabling (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix warning in networking_private_verify_delegate_factory_impl.cc Created 5 years, 11 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/browser/extensions/api/networking_private/networking_private_verify_delegate_factory_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/win_is_xtree_patched.py
diff --git a/build/win_is_xtree_patched.py b/build/win_is_xtree_patched.py
index 571732272f54658d732036da040ce1dae9bc4cd0..3f1994ff9d1749b69e9c26130a60c615bfc80701 100755
--- a/build/win_is_xtree_patched.py
+++ b/build/win_is_xtree_patched.py
@@ -13,13 +13,13 @@ def IsPatched():
# script (because we know it's patched). Another case could be added here to
# query the active VS installation and actually check the contents of xtree.
# http://crbug.com/346399.
- return os.environ.get('DEPOT_TOOLS_WIN_TOOLCHAIN', 1) == 0
+ return int(os.environ.get('DEPOT_TOOLS_WIN_TOOLCHAIN', 1)) == 1
def DoMain(_):
"""Hook to be called from gyp without starting a separate python
interpreter."""
- return IsPatched()
+ return "1" if IsPatched() else "0"
if __name__ == '__main__':
« no previous file with comments | « no previous file | chrome/browser/extensions/api/networking_private/networking_private_verify_delegate_factory_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698