| 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 ec18ff9549cc449e6125b7bcd37b257cf8a74c1f..dfcffec09723af46af76aaff4a6e279a5f08f835 100644
|
| --- a/chrome/browser/ui/webui/omnibox/omnibox_ui_handler.cc
|
| +++ b/chrome/browser/ui/webui/omnibox/omnibox_ui_handler.cc
|
| @@ -17,6 +17,7 @@
|
| #include "chrome/browser/autocomplete/chrome_autocomplete_scheme_classifier.h"
|
| #include "chrome/browser/bookmarks/bookmark_model_factory.h"
|
| #include "chrome/browser/history/history_service_factory.h"
|
| +#include "chrome/browser/profiles/profile.h"
|
| #include "chrome/browser/search/search.h"
|
| #include "chrome/browser/search_engines/template_url_service_factory.h"
|
| #include "components/bookmarks/browser/bookmark_model.h"
|
| @@ -108,11 +109,8 @@ struct TypeConverter<AutocompleteResultsForProviderMojoPtr,
|
|
|
| } // namespace mojo
|
|
|
| -OmniboxUIHandler::OmniboxUIHandler(
|
| - Profile* profile,
|
| - mojo::InterfaceRequest<OmniboxUIHandlerMojo> request)
|
| - : profile_(profile),
|
| - binding_(this, request.Pass()) {
|
| +OmniboxUIHandler::OmniboxUIHandler(content::WebUI* web_ui)
|
| + : profile_(Profile::FromWebUI(web_ui)) {
|
| ResetController();
|
| }
|
|
|
|
|