| Index: mojo/edk/js/drain_data.cc
|
| diff --git a/third_party/mojo/src/mojo/edk/js/drain_data.cc b/mojo/edk/js/drain_data.cc
|
| similarity index 94%
|
| copy from third_party/mojo/src/mojo/edk/js/drain_data.cc
|
| copy to mojo/edk/js/drain_data.cc
|
| index 137b76bff09143e4a72f12fb58bce7f6f75ff4a8..d8fa0917cf304e7135b50734498bc328e0ad6cc3 100644
|
| --- a/third_party/mojo/src/mojo/edk/js/drain_data.cc
|
| +++ b/mojo/edk/js/drain_data.cc
|
| @@ -2,7 +2,7 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#include "third_party/mojo/src/mojo/edk/js/drain_data.h"
|
| +#include "mojo/edk/js/drain_data.h"
|
|
|
| #include "gin/array_buffer.h"
|
| #include "gin/converter.h"
|
| @@ -13,7 +13,7 @@
|
| #include "mojo/public/cpp/system/core.h"
|
|
|
| namespace mojo {
|
| -namespace js {
|
| +namespace edk {
|
|
|
| DrainData::DrainData(v8::Isolate* isolate, mojo::Handle handle)
|
| : isolate_(isolate),
|
| @@ -42,8 +42,11 @@ DrainData::~DrainData() {
|
|
|
| void DrainData::WaitForData() {
|
| wait_id_ = Environment::GetDefaultAsyncWaiter()->AsyncWait(
|
| - 2, handle_.get().value(), MOJO_HANDLE_SIGNAL_READABLE,
|
| - MOJO_DEADLINE_INDEFINITE, &DrainData::WaitCompleted, this);
|
| + handle_.get().value(),
|
| + MOJO_HANDLE_SIGNAL_READABLE,
|
| + MOJO_DEADLINE_INDEFINITE,
|
| + &DrainData::WaitCompleted,
|
| + this);
|
| }
|
|
|
| void DrainData::DataReady(MojoResult result) {
|
| @@ -124,5 +127,5 @@ void DrainData::DeliverData(MojoResult result) {
|
| delete this;
|
| }
|
|
|
| -} // namespace js
|
| +} // namespace edk
|
| } // namespace mojo
|
|
|