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

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

Issue 10351011: Change Platform members to getters instead of methods. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Adding new test binaries Created 8 years, 8 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 | lib/compiler/implementation/lib/io.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/filenames.dart
diff --git a/lib/compiler/implementation/filenames.dart b/lib/compiler/implementation/filenames.dart
index 2c76740484af51681b300474ea2a7c773cb6cfe5..7dc6ed3f3b01483dcf66fae574567cb4d5863c15 100644
--- a/lib/compiler/implementation/filenames.dart
+++ b/lib/compiler/implementation/filenames.dart
@@ -14,7 +14,7 @@
// http://blogs.msdn.com/b/ie/archive/2006/12/06/file-uris-in-windows.aspx
String nativeToUriPath(String filename) {
- if (Platform.operatingSystem() != 'windows') return filename;
+ if (Platform.operatingSystem != 'windows') return filename;
filename = filename.toLowerCase();
filename = filename.replaceAll('\\', '/');
if (filename.length > 2 && filename[1] == ':') {
@@ -24,7 +24,7 @@ String nativeToUriPath(String filename) {
}
String uriPathToNative(String path) {
- if (Platform.operatingSystem() != 'windows') return path;
+ if (Platform.operatingSystem != 'windows') return path;
path = path.toLowerCase();
if (path.length > 3 && path[0] == '/' && path[2] == ':') {
return path.substring(1).replaceAll('/', '\\');
« no previous file with comments | « no previous file | lib/compiler/implementation/lib/io.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698