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

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

Issue 12052038: Rename new Uri.fromString to Uri.parse. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Reupload because of Error. 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 | « pkg/http/test/utils.dart ('k') | pkg/oauth2/lib/src/authorization_code_grant.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/oauth2/lib/oauth2.dart
diff --git a/pkg/oauth2/lib/oauth2.dart b/pkg/oauth2/lib/oauth2.dart
index cc0bb990d320395554164575728bb47b97acb903..4dfaadd21ce13db3d00ae1e91a428d4b9a76d6e1 100644
--- a/pkg/oauth2/lib/oauth2.dart
+++ b/pkg/oauth2/lib/oauth2.dart
@@ -28,9 +28,9 @@
/// // server. They're usually included in the server's documentation of its
/// // OAuth2 API.
/// final authorizationEndpoint =
-/// new Uri.fromString("http://example.com/oauth2/authorization");
+/// Uri.parse("http://example.com/oauth2/authorization");
/// final tokenEndpoint =
-/// new Uri.fromString("http://example.com/oauth2/token");
+/// Uri.parse("http://example.com/oauth2/token");
///
/// // The authorization server will issue each client a separate client
/// // identifier and secret, which allows the server to tell which client
@@ -48,7 +48,7 @@
/// // will redirect the resource owner here once they've authorized the
/// // client. The redirection will include the authorization code in the
/// // query parameters.
-/// final redirectUrl = new Uri.fromString(
+/// final redirectUrl = Uri.parse(
/// "http://my-site.com/oauth2-redirect");
///
/// var credentialsFile = new File("~/.myapp/credentials.json");
« no previous file with comments | « pkg/http/test/utils.dart ('k') | pkg/oauth2/lib/src/authorization_code_grant.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698