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

Unified Diff: chrome/browser/ui/webui/suggestions_internals/suggestions_internals_ui_handler.cc

Issue 10438004: Hooking the discovery API to the NTP. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added OWNERS for experimental discovery api. Created 8 years, 7 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
« no previous file with comments | « chrome/browser/ui/webui/suggestions_internals/suggestions_internals_ui_handler.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/suggestions_internals/suggestions_internals_ui_handler.cc
diff --git a/chrome/browser/ui/webui/suggestions_internals/suggestions_internals_ui_handler.cc b/chrome/browser/ui/webui/suggestions_internals/suggestions_internals_ui_handler.cc
index c3c0673d3427d3a50dd736c2e979c2b60729b53c..6cdb7578472f8edb2591dbbaec0c5cd2dce3b5d2 100644
--- a/chrome/browser/ui/webui/suggestions_internals/suggestions_internals_ui_handler.cc
+++ b/chrome/browser/ui/webui/suggestions_internals/suggestions_internals_ui_handler.cc
@@ -17,8 +17,8 @@ const size_t kSuggestionsCount = 100;
} // namespace
-SuggestionsInternalsUIHandler::SuggestionsInternalsUIHandler(Profile* profile) {
-}
+SuggestionsInternalsUIHandler::SuggestionsInternalsUIHandler(Profile* profile)
+ : profile_(profile) {}
SuggestionsInternalsUIHandler::~SuggestionsInternalsUIHandler() {}
@@ -31,7 +31,7 @@ void SuggestionsInternalsUIHandler::OnSuggestionsReady() {
void SuggestionsInternalsUIHandler::RegisterMessages() {
// Setup the suggestions sources.
- suggestions_combiner_.reset(SuggestionsCombiner::Create(this));
+ suggestions_combiner_.reset(SuggestionsCombiner::Create(this, profile_));
suggestions_combiner_->SetSuggestionsCount(kSuggestionsCount);
web_ui()->RegisterMessageCallback("getSuggestions",
« no previous file with comments | « chrome/browser/ui/webui/suggestions_internals/suggestions_internals_ui_handler.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698