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

Unified Diff: components/arc/clipboard/arc_clipboard_bridge.cc

Issue 1635603002: Make use of CreateInterfacePtrAndBind() where appropriate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tweaks Created 4 years, 11 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
« no previous file with comments | « components/arc/arc_bridge_service_impl.cc ('k') | components/arc/ime/arc_ime_ipc_host_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/arc/clipboard/arc_clipboard_bridge.cc
diff --git a/components/arc/clipboard/arc_clipboard_bridge.cc b/components/arc/clipboard/arc_clipboard_bridge.cc
index 24ef3d7899502bc49fe914d9c42854584fbe3ba2..b173ee137a71179c7810e525745fd0960387ce60 100644
--- a/components/arc/clipboard/arc_clipboard_bridge.cc
+++ b/components/arc/clipboard/arc_clipboard_bridge.cc
@@ -46,9 +46,7 @@ void ArcClipboardBridge::OnClipboardInstanceReady() {
return;
}
- ClipboardHostPtr host;
- binding_.Bind(mojo::GetProxy(&host));
- clipboard_instance->Init(std::move(host));
+ clipboard_instance->Init(binding_.CreateInterfacePtrAndBind());
}
void ArcClipboardBridge::SetTextContent(const mojo::String& text) {
« no previous file with comments | « components/arc/arc_bridge_service_impl.cc ('k') | components/arc/ime/arc_ime_ipc_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698