OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/ui/webui/omnibox/omnibox_ui.h" | 5 #include "chrome/browser/ui/webui/omnibox/omnibox_ui.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "chrome/browser/profiles/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
10 #include "chrome/browser/ui/webui/omnibox/omnibox_page_handler.h" | 10 #include "chrome/browser/ui/webui/omnibox/omnibox_page_handler.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 source->AddResourcePath("chrome/browser/ui/webui/omnibox/omnibox.mojom", | 23 source->AddResourcePath("chrome/browser/ui/webui/omnibox/omnibox.mojom", |
24 IDR_OMNIBOX_MOJO_JS); | 24 IDR_OMNIBOX_MOJO_JS); |
25 source->SetDefaultResource(IDR_OMNIBOX_HTML); | 25 source->SetDefaultResource(IDR_OMNIBOX_HTML); |
26 | 26 |
27 content::WebUIDataSource::Add(Profile::FromWebUI(web_ui), source); | 27 content::WebUIDataSource::Add(Profile::FromWebUI(web_ui), source); |
28 } | 28 } |
29 | 29 |
30 OmniboxUI::~OmniboxUI() {} | 30 OmniboxUI::~OmniboxUI() {} |
31 | 31 |
32 void OmniboxUI::BindUIHandler( | 32 void OmniboxUI::BindUIHandler( |
33 mojo::InterfaceRequest<mojom::OmniboxPageHandler> request) { | 33 const service_manager::BindSourceInfo& source_info, |
| 34 mojom::OmniboxPageHandlerRequest request) { |
34 omnibox_handler_.reset( | 35 omnibox_handler_.reset( |
35 new OmniboxPageHandler(Profile::FromWebUI(web_ui()), std::move(request))); | 36 new OmniboxPageHandler(Profile::FromWebUI(web_ui()), std::move(request))); |
36 } | 37 } |
OLD | NEW |