Index: mandoline/ui/omnibox/omnibox_application.cc |
diff --git a/mandoline/ui/omnibox/omnibox_application.cc b/mandoline/ui/omnibox/omnibox_application.cc |
index 0ee9c5b8ef6c087915617af5d41ddc1e7779779a..9a9727f25b88fac82c31cc373554a3f7f31afc68 100644 |
--- a/mandoline/ui/omnibox/omnibox_application.cc |
+++ b/mandoline/ui/omnibox/omnibox_application.cc |
@@ -90,7 +90,7 @@ void OmniboxApplication::Initialize(mojo::Shell* shell, const std::string& url, |
} |
bool OmniboxApplication::AcceptConnection(mojo::Connection* connection) { |
- connection->AddService<Omnibox>(this); |
+ connection->AddInterface<Omnibox>(this); |
return true; |
} |
@@ -112,7 +112,7 @@ OmniboxImpl::OmniboxImpl(mojo::Shell* shell, |
root_(nullptr), |
edit_(nullptr), |
binding_(this, std::move(request)) { |
- connection->ConnectToService(&view_embedder_); |
+ connection->GetInterface(&view_embedder_); |
} |
OmniboxImpl::~OmniboxImpl() {} |