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

Unified Diff: sdk/lib/_internal/pub/lib/src/sdk.dart

Issue 17406010: Move getters from Options to Platform (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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
Index: sdk/lib/_internal/pub/lib/src/sdk.dart
diff --git a/sdk/lib/_internal/pub/lib/src/sdk.dart b/sdk/lib/_internal/pub/lib/src/sdk.dart
index 0fbe5f966eeb3fb69f4c2272d999ce4868dcfd5b..7f4e26a2d10d8200b63f898983f37e20af897a0d 100644
--- a/sdk/lib/_internal/pub/lib/src/sdk.dart
+++ b/sdk/lib/_internal/pub/lib/src/sdk.dart
@@ -29,7 +29,7 @@ String get rootDirectory {
}
// Assume the Dart executable is always coming from the SDK.
- return path.dirname(path.dirname(new Options().executable));
+ return path.dirname(path.dirname(Platform.executable));
}
/// Gets the SDK's revision number formatted to be a semantic version.

Powered by Google App Engine
This is Rietveld 408576698