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

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 comments Created 6 years, 5 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 | « chrome/browser/ui/webui/omnibox/omnibox_ui.h ('k') | content/browser/webui/web_ui_mojo_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 64366cda07a52c32c4bc3e095bf3835fb70c00ec..98d97405dc99cd7f9518943b267e21140d57c3c7 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::WeakBindToPipe(new OmniboxUIHandler(Profile::FromWebUI(web_ui())),
- handle_to_page.Pass()));
+ mojo::InterfaceRequest<OmniboxUIHandlerMojo> request) {
+ return scoped_ptr<MojoWebUIHandler>(mojo::WeakBindToRequest(
+ new OmniboxUIHandler(Profile::FromWebUI(web_ui())), &request));
}
« no previous file with comments | « chrome/browser/ui/webui/omnibox/omnibox_ui.h ('k') | content/browser/webui/web_ui_mojo_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698