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

Unified Diff: components/web_view/frame_connection.cc

Issue 1455833005: Convert ConnectToApplication to take a params class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 1 month 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_connection.cc
diff --git a/components/web_view/frame_connection.cc b/components/web_view/frame_connection.cc
index 68d8fc082b59cf19fe9bbe015bf89f4e2d6b2685..4d403372edbc30a9d0b599e0472c81c9600ad816 100644
--- a/components/web_view/frame_connection.cc
+++ b/components/web_view/frame_connection.cc
@@ -110,8 +110,9 @@ void FrameConnection::Init(mojo::ApplicationImpl* app,
filter->filter.insert("mojo:font_service", font_service_interfaces.Pass());
#endif
- application_connection_ = app->ConnectToApplicationWithCapabilityFilter(
- request.Pass(), filter.Pass());
+ mojo::ApplicationImpl::ConnectParams params(request.Pass());
+ params.set_filter(filter.Pass());
+ application_connection_ = app->ConnectToApplication(&params);
application_connection_->ConnectToService(&frame_client_);
application_connection_->AddContentHandlerIDCallback(on_got_id_callback);
}
« no previous file with comments | « components/resource_provider/public/cpp/resource_loader.cc ('k') | components/web_view/frame_devtools_agent.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698