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

Unified Diff: chrome/browser/ui/webui/omnibox/omnibox_ui.cc

Issue 302573002: Add a Javascript wrapper around ServiceRegistry and expose it to WebUI. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@render-view-shell
Patch Set: address comment Created 6 years, 6 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
Index: chrome/browser/ui/webui/omnibox/omnibox_ui.cc
diff --git a/chrome/browser/ui/webui/omnibox/omnibox_ui.cc b/chrome/browser/ui/webui/omnibox/omnibox_ui.cc
index 2ff94ac37f16f8939cd73122f5e6c8c4b4880516..b9fa2a922e212fb59bca6dd431f1dd4707deea70 100644
--- a/chrome/browser/ui/webui/omnibox/omnibox_ui.cc
+++ b/chrome/browser/ui/webui/omnibox/omnibox_ui.cc
@@ -29,8 +29,7 @@ OmniboxUI::OmniboxUI(content::WebUI* web_ui) : MojoWebUIController(web_ui) {
OmniboxUI::~OmniboxUI() {}
scoped_ptr<MojoWebUIHandler> OmniboxUI::CreateUIHandler(
- mojo::ScopedMessagePipeHandle handle_to_page) {
- return scoped_ptr<MojoWebUIHandler>(
- mojo::BindToPipe(new OmniboxUIHandler(Profile::FromWebUI(web_ui())),
- handle_to_page.Pass()));
+ mojo::InterfaceRequest<OmniboxUIHandlerMojo> request) {
+ return scoped_ptr<MojoWebUIHandler>(mojo::BindToRequest(
+ new OmniboxUIHandler(Profile::FromWebUI(web_ui())), &request));
}

Powered by Google App Engine
This is Rietveld 408576698