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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/search/suggestions/suggestions_ui.cc
diff --git a/chrome/browser/search/suggestions/suggestions_ui.cc b/chrome/browser/search/suggestions/suggestions_ui.cc
new file mode 100644
index 0000000000000000000000000000000000000000..702bd1bf7398671ce9e07ba089e88b50fb80159a
--- /dev/null
+++ b/chrome/browser/search/suggestions/suggestions_ui.cc
@@ -0,0 +1,21 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/search/suggestions/suggestions_ui.h"
+
+#include "chrome/browser/profiles/profile.h"
+#include "chrome/browser/search/suggestions/suggestions_source.h"
+#include "content/public/browser/url_data_source.h"
+
+namespace suggestions {
+
+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.
+ : content::WebUIController(web_ui) {
+ Profile* profile = Profile::FromWebUI(web_ui);
+ content::URLDataSource::Add(profile, new SuggestionsSource(profile));
+}
+
+SuggestionsUI::~SuggestionsUI() {}
+
+} // namespace suggestions
« 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