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

Unified Diff: ios/web/webui/mojo_facade.mm

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: ios/web/webui/mojo_facade.mm
diff --git a/ios/web/webui/mojo_facade.mm b/ios/web/webui/mojo_facade.mm
index 6b02efb288c5bff1b02cb4f965b7ffdaddbdadc0..91708519925153965d5e596bf3be2caadf62d6b6 100644
--- a/ios/web/webui/mojo_facade.mm
+++ b/ios/web/webui/mojo_facade.mm
@@ -259,7 +259,8 @@ std::unique_ptr<base::Value> MojoFacade::HandleSupportWatch(
callback_id, result];
[script_evaluator_ executeJavaScript:script completionHandler:nil];
});
- mojo::Watcher* watcher = new mojo::Watcher(FROM_HERE);
+ mojo::Watcher* watcher =
+ new mojo::Watcher(FROM_HERE, mojo::Watcher::ArmingPolicy::AUTOMATIC);
watchers_.insert(std::make_pair(++last_watch_id_, base::WrapUnique(watcher)));
watcher->Start(static_cast<mojo::Handle>(handle), signals, callback);
return ValueFromInteger(last_watch_id_);

Powered by Google App Engine
This is Rietveld 408576698