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

Unified Diff: tools/findit/chromium_deps.py

Issue 465403004: [Findit] Support sending cookies for http requests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 6 years, 4 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 | « tools/findit/cacert.pem ('k') | tools/findit/chromium_deps_unittest.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/findit/chromium_deps.py
diff --git a/tools/findit/chromium_deps.py b/tools/findit/chromium_deps.py
index 6bad2c49e6bccb0c7cbb97a6159102a0e331df28..0b187f5880b099e0f19e787b0be7825d6966423a 100644
--- a/tools/findit/chromium_deps.py
+++ b/tools/findit/chromium_deps.py
@@ -3,8 +3,8 @@
# found in the LICENSE file.
import base64
-import https
-import utils
+
+from common import utils
DEPS_FILE_URL_SVN = 'https://src.chromium.org/chrome/trunk/src/DEPS?p=%s'
@@ -78,7 +78,8 @@ def _GetContentOfDEPS(chromium_revision):
url = DEPS_FILE_URL_GIT
else:
url = DEPS_FILE_URL_SVN
- return https.SendRequest(url % chromium_revision)
+ _, content = utils.GetHttpClient().Get(url % chromium_revision, timeout=60)
+ return content
def GetChromiumComponents(chromium_revision,
@@ -202,9 +203,3 @@ def GetChromiumComponentRange(old_revision,
}
return components
-
-
-if __name__ == '__main__':
- import json
- print json.dumps(GetChromiumComponents(
- 'b4b1aea80b25a3b2f7952c9d95585e880421ef2b'), sort_keys=True, indent=2)
« no previous file with comments | « tools/findit/cacert.pem ('k') | tools/findit/chromium_deps_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698