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

Unified Diff: chrome/browser/ui/webui/ntp/suggestions_page_handler.cc

Issue 10825020: Moved Discovery out of the Suggested Page (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Moving Discovery from the Suggestions Page Created 8 years, 5 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/ntp/suggestions_combiner.cc ('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/ntp/suggestions_page_handler.cc
diff --git a/chrome/browser/ui/webui/ntp/suggestions_page_handler.cc b/chrome/browser/ui/webui/ntp/suggestions_page_handler.cc
index 2c89de2e59f50cbbe12aa631b1a1ac30b7265d8c..30b58084ec6a3e5db24e335bf397ad032e1fb116 100644
--- a/chrome/browser/ui/webui/ntp/suggestions_page_handler.cc
+++ b/chrome/browser/ui/webui/ntp/suggestions_page_handler.cc
@@ -22,6 +22,7 @@
#include "chrome/browser/ui/webui/favicon_source.h"
#include "chrome/browser/ui/webui/ntp/suggestions_combiner.h"
#include "chrome/browser/ui/webui/ntp/ntp_stats.h"
+#include "chrome/browser/ui/webui/ntp/suggestions_source_top_sites.h"
#include "chrome/browser/ui/webui/ntp/thumbnail_source.h"
#include "chrome/common/chrome_notification_types.h"
#include "chrome/common/url_constants.h"
@@ -82,7 +83,9 @@ void SuggestionsHandler::RegisterMessages() {
}
// Setup the suggestions sources.
- suggestions_combiner_.reset(SuggestionsCombiner::Create(this, profile));
+ SuggestionsCombiner* combiner = new SuggestionsCombiner(this, profile);
+ combiner->AddSource(new SuggestionsSourceTopSites());
+ suggestions_combiner_.reset(combiner);
// We pre-emptively make a fetch for suggestions so we have the results
// sooner.
« no previous file with comments | « chrome/browser/ui/webui/ntp/suggestions_combiner.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698