Index: mandoline/ui/desktop_ui/browser_window.cc |
diff --git a/mandoline/ui/desktop_ui/browser_window.cc b/mandoline/ui/desktop_ui/browser_window.cc |
index 6b4f15e9ab0c09a9af2b248919f13d320e0c16db..92d59e75da608f210b5f96cc29e5bbea1c3a1d4c 100644 |
--- a/mandoline/ui/desktop_ui/browser_window.cc |
+++ b/mandoline/ui/desktop_ui/browser_window.cc |
@@ -152,8 +152,8 @@ void BrowserWindow::ShowOmnibox() { |
TRACE_EVENT0("desktop_ui", "BrowserWindow::ShowOmnibox"); |
if (!omnibox_.get()) { |
omnibox_connection_ = shell_->Connect("mojo:omnibox"); |
- omnibox_connection_->AddService<ViewEmbedder>(this); |
- omnibox_connection_->ConnectToService(&omnibox_); |
+ omnibox_connection_->AddInterface<ViewEmbedder>(this); |
+ omnibox_connection_->GetInterface(&omnibox_); |
omnibox_connection_->SetRemoteServiceProviderConnectionErrorHandler( |
[this]() { |
// This will cause the connection to be re-established the next time |