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

Unified Diff: components/web_view/frame_apptest.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
Index: components/web_view/frame_apptest.cc
diff --git a/components/web_view/frame_apptest.cc b/components/web_view/frame_apptest.cc
index 2d8fd71a5096ffe5033ae9c79e6d32a927ab5982..c90c38cb3834b9ecafb7f9c6f964d701dcf01245 100644
--- a/components/web_view/frame_apptest.cc
+++ b/components/web_view/frame_apptest.cc
@@ -251,9 +251,7 @@ class WindowAndFrame : public mus::WindowTreeDelegate {
}
mojom::FrameClientPtr GetFrameClientPtr() {
- mojom::FrameClientPtr client_ptr;
- frame_client_binding_.Bind(GetProxy(&client_ptr));
- return client_ptr;
+ return frame_client_binding_.CreateInterfacePtrAndBind();
}
void Bind(mojo::InterfaceRequest<mojom::FrameClient> request) {
« no previous file with comments | « components/filesystem/public/cpp/prefs/filesystem_json_pref_store.cc ('k') | components/web_view/frame_devtools_agent.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698