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

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

Issue 280003003: Add SetClient method implementation to 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
« no previous file with comments | « chrome/browser/ui/webui/omnibox/omnibox_ui_handler.h ('k') | content/browser/mojo/mojo_application_host.h » ('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_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,
« no previous file with comments | « chrome/browser/ui/webui/omnibox/omnibox_ui_handler.h ('k') | content/browser/mojo/mojo_application_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698