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

Unified Diff: components/web_view/frame_connection.cc

Issue 1578473002: Pass application ids via AcceptConnection & ConnectToApplication callback. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . 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/html_viewer/media_factory.cc ('k') | components/web_view/frame_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/web_view/frame_connection.cc
diff --git a/components/web_view/frame_connection.cc b/components/web_view/frame_connection.cc
index 7358c3d709bd5b00ecaff347750cd1fd81003058..896dad49b232ca5a2fd180afec5a65c8d451ba7a 100644
--- a/components/web_view/frame_connection.cc
+++ b/components/web_view/frame_connection.cc
@@ -120,7 +120,7 @@ void FrameConnection::Init(mojo::ApplicationImpl* app,
params.set_filter(std::move(filter));
application_connection_ = app->ConnectToApplication(&params);
application_connection_->ConnectToService(&frame_client_);
- application_connection_->AddContentHandlerIDCallback(on_got_id_callback);
+ application_connection_->AddRemoteIDCallback(on_got_id_callback);
}
mus::mojom::WindowTreeClientPtr FrameConnection::GetWindowTreeClient() {
@@ -131,8 +131,8 @@ mus::mojom::WindowTreeClientPtr FrameConnection::GetWindowTreeClient() {
}
uint32_t FrameConnection::GetContentHandlerID() const {
- uint32_t content_handler_id = mojo::Shell::kInvalidContentHandlerID;
- if (!application_connection_->GetContentHandlerID(&content_handler_id))
+ uint32_t content_handler_id = mojo::Shell::kInvalidApplicationID;
+ if (!application_connection_->GetRemoteContentHandlerID(&content_handler_id))
NOTREACHED();
return content_handler_id;
}
« no previous file with comments | « components/html_viewer/media_factory.cc ('k') | components/web_view/frame_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698