Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "chrome/browser/search/suggestions/suggestions_ui.h" | |
| 6 | |
| 7 #include "chrome/browser/profiles/profile.h" | |
| 8 #include "chrome/browser/search/suggestions/suggestions_source.h" | |
| 9 #include "content/public/browser/url_data_source.h" | |
| 10 | |
| 11 namespace suggestions { | |
| 12 | |
| 13 SuggestionsUI::SuggestionsUI(content::WebUI* web_ui) | |
|
Bernhard Bauer
2016/04/18 08:07:22
You could move the SuggestionsSource into an anony
Marc Treib
2016/04/19 12:06:47
Done.
| |
| 14 : content::WebUIController(web_ui) { | |
| 15 Profile* profile = Profile::FromWebUI(web_ui); | |
| 16 content::URLDataSource::Add(profile, new SuggestionsSource(profile)); | |
| 17 } | |
| 18 | |
| 19 SuggestionsUI::~SuggestionsUI() {} | |
| 20 | |
| 21 } // namespace suggestions | |
| OLD | NEW |