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

Unified Diff: dart/lib/compiler/implementation/filenames.dart

Issue 10850015: Changed default Uri constructor to Uri.fromComponents(), new default constructor is Uri.fromString(… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 5 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 | « no previous file | dart/lib/uri/uri.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/lib/compiler/implementation/filenames.dart
diff --git a/dart/lib/compiler/implementation/filenames.dart b/dart/lib/compiler/implementation/filenames.dart
index 7dc6ed3f3b01483dcf66fae574567cb4d5863c15..ad086b3242eb636f6261cd3edbbf3a3fb37f5db1 100644
--- a/dart/lib/compiler/implementation/filenames.dart
+++ b/dart/lib/compiler/implementation/filenames.dart
@@ -35,7 +35,7 @@ String uriPathToNative(String path) {
Uri getCurrentDirectory() {
final String dir = nativeToUriPath(new File('.').fullPathSync());
- return new Uri(scheme: 'file', path: appendSlash(dir));
+ return new Uri.fromComponents(scheme: 'file', path: appendSlash(dir));
}
String appendSlash(String path) => path.endsWith('/') ? path : '$path/';
« no previous file with comments | « no previous file | dart/lib/uri/uri.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698