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

Unified Diff: runtime/bin/process_impl.dart

Issue 10021048: Remove need to instantiate Platform and make methods static. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add stable 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 | « runtime/bin/platform_impl.dart ('k') | tests/standalone/src/io/DartStdIOPipeTest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/process_impl.dart
diff --git a/runtime/bin/process_impl.dart b/runtime/bin/process_impl.dart
index 3811091c2264c20acb4c9194c238c102388b345a..1ff6de99539345007a73cb90a160aaaf6da46bd0 100644
--- a/runtime/bin/process_impl.dart
+++ b/runtime/bin/process_impl.dart
@@ -55,7 +55,7 @@ class _InteractiveProcess implements Process {
throw new IllegalArgumentException("Non-string argument: $arg");
}
_arguments[i] = arguments[i];
- if (new Platform().operatingSystem() == 'windows') {
+ if (Platform.operatingSystem() == 'windows') {
_arguments[i] = _windowsArgumentEscape(_arguments[i]);
}
}
« no previous file with comments | « runtime/bin/platform_impl.dart ('k') | tests/standalone/src/io/DartStdIOPipeTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698