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

Unified Diff: content/child/url_response_body_consumer.cc

Issue 2725133002: Mojo: Armed Watchers (Closed)
Patch Set: . Created 3 years, 10 months 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
Index: content/child/url_response_body_consumer.cc
diff --git a/content/child/url_response_body_consumer.cc b/content/child/url_response_body_consumer.cc
index a51b4f70a36bb43616203c12e30743193268423c..c6219149e4958f8535e99100f37ff1781c614e54 100644
--- a/content/child/url_response_body_consumer.cc
+++ b/content/child/url_response_body_consumer.cc
@@ -48,7 +48,9 @@ URLResponseBodyConsumer::URLResponseBodyConsumer(
: request_id_(request_id),
resource_dispatcher_(resource_dispatcher),
handle_(std::move(handle)),
- handle_watcher_(FROM_HERE, task_runner),
+ handle_watcher_(FROM_HERE,
+ mojo::Watcher::ArmingPolicy::AUTOMATIC,
+ task_runner),
task_runner_(task_runner),
has_seen_end_of_data_(!handle_.is_valid()) {
handle_watcher_.Start(

Powered by Google App Engine
This is Rietveld 408576698