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

Unified Diff: runtime/bin/platform_patch.dart

Issue 1529063006: - Implement Platform.packageRoot and Platform.packageConfig based (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years 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: runtime/bin/platform_patch.dart
diff --git a/runtime/bin/platform_patch.dart b/runtime/bin/platform_patch.dart
index c917b54f77c2d65f54543f218e068226859e4e9e..dec7493e64fdfebd22180bf171aac4ff4d6e5947 100644
--- a/runtime/bin/platform_patch.dart
+++ b/runtime/bin/platform_patch.dart
@@ -15,6 +15,7 @@ patch class _Platform {
/* patch */ static _environment() native "Platform_Environment";
/* patch */ static List<String> _executableArguments()
native "Platform_ExecutableArguments";
- /* patch */ static String _packageRoot() native "Platform_PackageRoot";
+ /* patch */ static String _packageRoot() => VMLibraryHooks.packageRoot;
+ /* patch */ static String _packageConfig() => VMLibraryHooks.packageConfig;
/* patch */ static String _version() native "Platform_GetVersion";
}

Powered by Google App Engine
This is Rietveld 408576698