| Index: mojo/common/data_pipe_drainer.cc
|
| diff --git a/mojo/common/data_pipe_drainer.cc b/mojo/common/data_pipe_drainer.cc
|
| index e705c8d387f28fc84b823e26fcef6997b5ea4412..27bd893d8abe185107de105ade3e31a82b80eae6 100644
|
| --- a/mojo/common/data_pipe_drainer.cc
|
| +++ b/mojo/common/data_pipe_drainer.cc
|
| @@ -17,10 +17,10 @@
|
| mojo::ScopedDataPipeConsumerHandle source)
|
| : client_(client),
|
| source_(std::move(source)),
|
| - handle_watcher_(FROM_HERE, SimpleWatcher::ArmingPolicy::AUTOMATIC),
|
| + handle_watcher_(FROM_HERE),
|
| weak_factory_(this) {
|
| DCHECK(client_);
|
| - handle_watcher_.Watch(
|
| + handle_watcher_.Start(
|
| source_.get(), MOJO_HANDLE_SIGNAL_READABLE,
|
| base::Bind(&DataPipeDrainer::WaitComplete, weak_factory_.GetWeakPtr()));
|
| }
|
|
|