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

Side by Side Diff: chrome/browser/search/suggestions/suggestions_ui.cc

Issue 1887403002: Create a WebUIController for chrome://suggestions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 8 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 unified diff | Download patch
OLDNEW
(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
OLDNEW
« no previous file with comments | « chrome/browser/search/suggestions/suggestions_ui.h ('k') | chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698