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

Unified Diff: runtime/bin/main.cc

Issue 1460863002: Redo the interface for capture stdio. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 1 month 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/file.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/main.cc
diff --git a/runtime/bin/main.cc b/runtime/bin/main.cc
index 72c54602f8cc73276cab6e0b5ac029ba7c17d209..e23c6613666891fe08a7370010f537aa9ff74be5 100644
--- a/runtime/bin/main.cc
+++ b/runtime/bin/main.cc
@@ -13,6 +13,7 @@
#include "bin/dartutils.h"
#include "bin/dbg_connection.h"
#include "bin/directory.h"
+#include "bin/embedded_dart_io.h"
#include "bin/eventhandler.h"
#include "bin/extensions.h"
#include "bin/file.h"
@@ -1061,10 +1062,10 @@ static const char* kStderrStreamId = "Stderr";
static bool ServiceStreamListenCallback(const char* stream_id) {
if (strcmp(stream_id, kStdoutStreamId) == 0) {
- File::set_capture_stdout(true);
+ SetCaptureStdout(true);
return true;
} else if (strcmp(stream_id, kStderrStreamId) == 0) {
- File::set_capture_stderr(true);
+ SetCaptureStderr(true);
return true;
}
return false;
@@ -1073,9 +1074,9 @@ static bool ServiceStreamListenCallback(const char* stream_id) {
static void ServiceStreamCancelCallback(const char* stream_id) {
if (strcmp(stream_id, kStdoutStreamId) == 0) {
- File::set_capture_stdout(false);
+ SetCaptureStdout(false);
} else if (strcmp(stream_id, kStderrStreamId) == 0) {
- File::set_capture_stderr(false);
+ SetCaptureStderr(false);
}
}
« no previous file with comments | « runtime/bin/file.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698