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

Unified Diff: mojo/public/cpp/bindings/associated_binding.h

Issue 2727733004: [IndexedDB] Closing mojo connections when renderer quits (Closed)
Patch Set: comments Created 3 years, 8 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: mojo/public/cpp/bindings/associated_binding.h
diff --git a/mojo/public/cpp/bindings/associated_binding.h b/mojo/public/cpp/bindings/associated_binding.h
index 59411666f5aca80a6e05953070ccb821ef2040e3..b4c828b727b38f02ca0326443a3cc92e3a5b8a7a 100644
--- a/mojo/public/cpp/bindings/associated_binding.h
+++ b/mojo/public/cpp/bindings/associated_binding.h
@@ -96,9 +96,10 @@ class AssociatedBinding : public AssociatedBindingBase {
// Constructs an incomplete associated binding that will use the
// implementation |impl|. It may be completed with a subsequent call to the
- // |Bind| method. Does not take ownership of |impl|, which must outlive this
- // object.
- explicit AssociatedBinding(ImplPointerType impl) { stub_.set_sink(impl); }
+ // |Bind| method.
+ explicit AssociatedBinding(ImplPointerType impl) {
+ stub_.set_sink(std::move(impl));
+ }
// Constructs a completed associated binding of |impl|. The output |ptr_info|
// should be sent by another interface. |impl| must outlive this object.
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | mojo/public/cpp/bindings/strong_associated_binding_set.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698