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

Unified Diff: runtime/bin/embedded_dart_io.cc

Issue 2662393002: Export SetExecutableName/Arguments for use by embedders
Patch Set: Created 3 years, 11 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/embedded_dart_io.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/embedded_dart_io.cc
diff --git a/runtime/bin/embedded_dart_io.cc b/runtime/bin/embedded_dart_io.cc
index 8b1b7fb785c2f097d7185f4261af749774d4db24..e35c94cee4223c60b64472eefcdd7c8523d716b3 100644
--- a/runtime/bin/embedded_dart_io.cc
+++ b/runtime/bin/embedded_dart_io.cc
@@ -6,6 +6,7 @@
#include "bin/directory.h"
#include "bin/eventhandler.h"
+#include "bin/platform.h"
#include "bin/utils.h"
#include "bin/thread.h"
@@ -24,5 +25,13 @@ void SetSystemTempDirectory(const char* system_temp) {
Directory::SetSystemTemp(system_temp);
}
+void SetExecutableName(const char* executable_name) {
+ Platform::SetExecutableName(executable_name);
+}
+
+void SetExecutableArguments(int script_index, char** argv) {
+ Platform::SetExecutableArguments(script_index, argv);
+}
+
} // namespace bin
} // namespace dart
« no previous file with comments | « runtime/bin/embedded_dart_io.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698