Index: content/child/web_data_consumer_handle_impl.cc |
diff --git a/content/child/web_data_consumer_handle_impl.cc b/content/child/web_data_consumer_handle_impl.cc |
index f81221d85b8e9f97d1cc1979109ea50f7cd983a2..b40f479861e1ba145c80e339da7f8bb6dd80d81c 100644 |
--- a/content/child/web_data_consumer_handle_impl.cc |
+++ b/content/child/web_data_consumer_handle_impl.cc |
@@ -37,7 +37,9 @@ class WebDataConsumerHandleImpl::Context |
WebDataConsumerHandleImpl::ReaderImpl::ReaderImpl( |
scoped_refptr<Context> context, |
Client* client) |
- : context_(context), handle_watcher_(FROM_HERE), client_(client) { |
+ : context_(context), |
+ handle_watcher_(FROM_HERE, mojo::SimpleWatcher::ArmingPolicy::AUTOMATIC), |
+ client_(client) { |
if (client_) |
StartWatching(); |
} |
@@ -130,7 +132,7 @@ Result WebDataConsumerHandleImpl::ReaderImpl::HandleReadResult( |
} |
void WebDataConsumerHandleImpl::ReaderImpl::StartWatching() { |
- handle_watcher_.Start( |
+ handle_watcher_.Watch( |
context_->handle().get(), MOJO_HANDLE_SIGNAL_READABLE, |
base::Bind(&ReaderImpl::OnHandleGotReadable, base::Unretained(this))); |
} |