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, |