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

Unified Diff: utils/pub/command_lish.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 | « tests/utils/uri_test.dart ('k') | utils/pub/command_uploader.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/pub/command_lish.dart
diff --git a/utils/pub/command_lish.dart b/utils/pub/command_lish.dart
index 544fb9451fe1990177dd1dbd9c93240ea4dea5c2..59bfbbf452cd7f4e3da6b3fbf8c5c5a1b8f4fc88 100644
--- a/utils/pub/command_lish.dart
+++ b/utils/pub/command_lish.dart
@@ -38,7 +38,7 @@ class LishCommand extends PubCommand {
}
/// The URL of the server to which to upload the package.
- Uri get server => new Uri.fromString(commandOptions['server']);
+ Uri get server => Uri.parse(commandOptions['server']);
Future _publish(packageBytes) {
var cloudStorageUrl;
@@ -51,7 +51,7 @@ class LishCommand extends PubCommand {
var url = _expectField(parameters, 'url', response);
if (url is! String) invalidServerResponse(response);
- cloudStorageUrl = new Uri.fromString(url);
+ cloudStorageUrl = Uri.parse(url);
var request = new http.MultipartRequest('POST', cloudStorageUrl);
var fields = _expectField(parameters, 'fields', response);
« no previous file with comments | « tests/utils/uri_test.dart ('k') | utils/pub/command_uploader.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698