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

Unified Diff: components/pdf_viewer/pdf_viewer.cc

Issue 1681813002: Rename Connection::AddService/ConnectToService to Connection::AddInterface/GetInterface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@interface_binder
Patch Set: . Created 4 years, 10 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/mus/ws/window_tree_apptest.cc ('k') | components/resource_provider/resource_provider_app.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/pdf_viewer/pdf_viewer.cc
diff --git a/components/pdf_viewer/pdf_viewer.cc b/components/pdf_viewer/pdf_viewer.cc
index ba162121b7007105c1f91eda96b51d46ac5c3077..e46e7df308044a7bbd4521e95460bb8c62968872 100644
--- a/components/pdf_viewer/pdf_viewer.cc
+++ b/components/pdf_viewer/pdf_viewer.cc
@@ -64,7 +64,7 @@ class PDFView : public mus::WindowTreeDelegate,
root_(nullptr),
frame_client_binding_(this),
delete_callback_(delete_callback) {
- connection->AddService(this);
+ connection->AddInterface(this);
}
void Close() {
@@ -287,7 +287,7 @@ class PDFViewerApplicationDelegate
// mojo::ShellClient:
bool AcceptConnection(mojo::Connection* connection) override {
- connection->AddService<mus::mojom::WindowTreeClient>(this);
+ connection->AddInterface<mus::mojom::WindowTreeClient>(this);
return true;
}
@@ -356,7 +356,7 @@ class PDFViewer
}
bool AcceptConnection(mojo::Connection* connection) override {
- connection->AddService(this);
+ connection->AddInterface(this);
return true;
}
« no previous file with comments | « components/mus/ws/window_tree_apptest.cc ('k') | components/resource_provider/resource_provider_app.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698