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

Unified Diff: utils/pub/oauth2.dart

Issue 12090104: Stop using cURL in Pub. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 | « utils/pub/http.dart ('k') | utils/pub/pub.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/pub/oauth2.dart
diff --git a/utils/pub/oauth2.dart b/utils/pub/oauth2.dart
index 21565a7bd524490dcddc5ea9bab4ba59f59e756d..b9aa38ed42d42903e628c7ac4226f76ac3883276 100644
--- a/utils/pub/oauth2.dart
+++ b/utils/pub/oauth2.dart
@@ -97,7 +97,7 @@ Future<Client> _getClient(SystemCache cache) {
return _loadCredentials(cache).then((credentials) {
if (credentials == null) return _authorize();
return new Client(_identifier, _secret, credentials,
- httpClient: curlClient);
+ httpClient: httpClient);
}).then((client) {
return _saveCredentials(cache, client.credentials).then((_) => client);
});
@@ -168,7 +168,7 @@ Future<Client> _authorize() {
_secret,
_authorizationEndpoint,
tokenEndpoint,
- httpClient: curlClient);
+ httpClient: httpClient);
// Spin up a one-shot HTTP server to receive the authorization code from the
// Google OAuth2 server via redirect. This server will close itself as soon as
« no previous file with comments | « utils/pub/http.dart ('k') | utils/pub/pub.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698