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 e693765d0dedb5f10bd107c442321459c14b46db..facaecf8c051486aa73d4435170ba3efb808eb7e 100644 |
--- a/chrome/browser/ui/webui/omnibox/omnibox_ui_handler.cc |
+++ b/chrome/browser/ui/webui/omnibox/omnibox_ui_handler.cc |
@@ -112,8 +112,7 @@ class TypeConverter<AutocompleteResultsForProviderMojo, AutocompleteProvider*> { |
} // namespace mojo |
OmniboxUIHandler::OmniboxUIHandler(Profile* profile) |
- : page_(NULL), |
- profile_(profile) { |
+ : profile_(profile) { |
ResetController(); |
} |
@@ -145,7 +144,7 @@ void OmniboxUIHandler::OnResultChanged(bool default_match_changed) { |
builder.set_results_by_provider( |
mojo::Array<AutocompleteResultsForProviderMojo>::From( |
*controller_->providers())); |
- page_->HandleNewAutocompleteResult(builder.Finish()); |
+ client()->HandleNewAutocompleteResult(builder.Finish()); |
} |
bool OmniboxUIHandler::LookupIsTypedHost(const base::string16& host, |
@@ -162,10 +161,6 @@ 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, |