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

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

Issue 265793015: Mojo: Replace RemotePtr with InterfacePtr and InterfaceImpl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 7 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_handler.cc
diff --git a/chrome/browser/ui/webui/omnibox/omnibox_ui_handler.cc b/chrome/browser/ui/webui/omnibox/omnibox_ui_handler.cc
index 14b0de7694a0fb1c24b239e316153ea5062fa9a8..e693765d0dedb5f10bd107c442321459c14b46db 100644
--- a/chrome/browser/ui/webui/omnibox/omnibox_ui_handler.cc
+++ b/chrome/browser/ui/webui/omnibox/omnibox_ui_handler.cc
@@ -111,9 +111,8 @@ class TypeConverter<AutocompleteResultsForProviderMojo, AutocompleteProvider*> {
} // namespace mojo
-OmniboxUIHandler::OmniboxUIHandler(ScopedOmniboxPageHandle handle,
- Profile* profile)
- : page_(handle.Pass(), this),
+OmniboxUIHandler::OmniboxUIHandler(Profile* profile)
+ : page_(NULL),
profile_(profile) {
ResetController();
}
@@ -163,6 +162,10 @@ bool OmniboxUIHandler::LookupIsTypedHost(const base::string16& host,
return true;
}
+void OmniboxUIHandler::SetClient(OmniboxPage* page) {
+ page_ = page;
+}
+
void OmniboxUIHandler::StartOmniboxQuery(const mojo::String& input_string,
int32_t cursor_position,
bool prevent_inline_autocomplete,

Powered by Google App Engine
This is Rietveld 408576698