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

Unified Diff: runtime/bin/dartutils.cc

Issue 2081853004: Do not use Dart_DefaultCanonicalizeUrl for resolving a script uri in the current working directory … (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Do not use Dart_DefaultCanonicalizeUrl for resolving a script uri in the current working directory … Created 4 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
« no previous file with comments | « runtime/bin/dartutils.h ('k') | runtime/bin/gen_snapshot.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/dartutils.cc
diff --git a/runtime/bin/dartutils.cc b/runtime/bin/dartutils.cc
index 55da17d932e4ede39bce949efdd62cf6d8b02c27..1b1f42faced0ede551963534668366cb57459a85 100644
--- a/runtime/bin/dartutils.cc
+++ b/runtime/bin/dartutils.cc
@@ -335,6 +335,17 @@ Dart_Handle DartUtils::SetWorkingDirectory() {
}
+Dart_Handle DartUtils::ResolveUriInWorkingDirectory(Dart_Handle script_uri) {
+ const int kNumArgs = 1;
+ Dart_Handle dart_args[kNumArgs];
+ dart_args[0] = script_uri;
+ return Dart_Invoke(DartUtils::BuiltinLib(),
+ NewString("_resolveInWorkingDirectory"),
+ kNumArgs,
+ dart_args);
+}
+
+
Dart_Handle DartUtils::LibraryFilePath(Dart_Handle library_uri) {
const int kNumArgs = 1;
Dart_Handle dart_args[kNumArgs];
« no previous file with comments | « runtime/bin/dartutils.h ('k') | runtime/bin/gen_snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698