summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/webui/most_visited_handler.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/ui/webui/most_visited_handler.cc')
-rw-r--r--chrome/browser/ui/webui/most_visited_handler.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/ui/webui/most_visited_handler.cc b/chrome/browser/ui/webui/most_visited_handler.cc
index 11f6e1b..99bac17 100644
--- a/chrome/browser/ui/webui/most_visited_handler.cc
+++ b/chrome/browser/ui/webui/most_visited_handler.cc
@@ -27,6 +27,7 @@
#include "chrome/browser/ui/webui/new_tab_ui.h"
#include "chrome/browser/ui/webui/thumbnail_source.h"
#include "chrome/common/pref_names.h"
+#include "chrome/common/url_constants.h"
#include "content/browser/browser_thread.h"
#include "content/common/notification_source.h"
#include "content/common/notification_type.h"
@@ -68,8 +69,7 @@ WebUIMessageHandler* MostVisitedHandler::Attach(WebUI* web_ui) {
ThumbnailSource* thumbnail_src = new ThumbnailSource(profile);
profile->GetChromeURLDataManager()->AddDataSource(thumbnail_src);
- FaviconSource* favicon_src = new FaviconSource(profile);
- profile->GetChromeURLDataManager()->AddDataSource(favicon_src);
+ profile->GetChromeURLDataManager()->AddDataSource(new FaviconSource(profile));
// Get notifications when history is cleared.
registrar_.Add(this, NotificationType::HISTORY_URLS_DELETED,