fix: no more need to hijack process.stdout on Win32 (#25765)

This commit is contained in:
Cheng Zhao 2020-10-06 02:10:38 +09:00 committed by GitHub
parent 9717dff4fa
commit 57dc170e81
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 9 additions and 63 deletions

View file

@ -5,7 +5,6 @@
#include "shell/common/api/electron_bindings.h"
#include <algorithm>
#include <iostream>
#include <string>
#include <utility>
#include <vector>
@ -48,7 +47,6 @@ void ElectronBindings::BindProcess(v8::Isolate* isolate,
// These bindings are shared between sandboxed & unsandboxed renderers
process->SetMethod("crash", &Crash);
process->SetMethod("hang", &Hang);
process->SetMethod("log", &Log);
process->SetMethod("getCreationTime", &GetCreationTime);
process->SetMethod("getHeapStatistics", &GetHeapStatistics);
process->SetMethod("getBlinkMemoryInfo", &GetBlinkMemoryInfo);
@ -126,11 +124,6 @@ void ElectronBindings::OnCallNextTick(uv_async_t* handle) {
self->pending_next_ticks_.clear();
}
// static
void ElectronBindings::Log(const base::string16& message) {
std::cout << message << std::flush;
}
// static
void ElectronBindings::Crash() {
volatile int* zero = nullptr;