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

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

Issue 419433002: Correct ownership of mojo OmniboxUIHandler (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 | « no previous file | no next file » | 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 2ff94ac37f16f8939cd73122f5e6c8c4b4880516..64366cda07a52c32c4bc3e095bf3835fb70c00ec 100644
--- a/chrome/browser/ui/webui/omnibox/omnibox_ui.cc
+++ b/chrome/browser/ui/webui/omnibox/omnibox_ui.cc
@@ -31,6 +31,6 @@ 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::WeakBindToPipe(new OmniboxUIHandler(Profile::FromWebUI(web_ui())),
+ handle_to_page.Pass()));
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698