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

Unified Diff: pkg/oauth2/lib/src/authorization_code_grant.dart

Issue 11308111: Refactor http.Client and http.BaseClient to allow http.Client in type annotations. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Small fix Created 8 years, 1 month 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 | « pkg/http/lib/src/io_client.dart ('k') | pkg/oauth2/lib/src/client.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/oauth2/lib/src/authorization_code_grant.dart
diff --git a/pkg/oauth2/lib/src/authorization_code_grant.dart b/pkg/oauth2/lib/src/authorization_code_grant.dart
index b4c50d966a7efbb5ef5079055c5fd2f9d0be3dee..dcb36d06f3d076c66f52334ceb330660b6f88a67 100644
--- a/pkg/oauth2/lib/src/authorization_code_grant.dart
+++ b/pkg/oauth2/lib/src/authorization_code_grant.dart
@@ -75,7 +75,7 @@ class AuthorizationCodeGrant {
final Uri tokenEndpoint;
/// The HTTP client used to make HTTP requests.
- http.BaseClient _httpClient;
+ http.Client _httpClient;
/// The URL to which the resource owner will be redirected after they
/// authorize this client with the authorization server.
@@ -101,7 +101,7 @@ class AuthorizationCodeGrant {
this.secret,
this.authorizationEndpoint,
this.tokenEndpoint,
- {http.BaseClient httpClient})
+ {http.Client httpClient})
: _httpClient = httpClient == null ? new http.Client() : httpClient;
/// Returns the URL to which the resource owner should be redirected to
« no previous file with comments | « pkg/http/lib/src/io_client.dart ('k') | pkg/oauth2/lib/src/client.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698