Index: chrome/browser/ui/webui/most_visited_handler.cc |
diff --git a/chrome/browser/ui/webui/most_visited_handler.cc b/chrome/browser/ui/webui/most_visited_handler.cc |
index 11f6e1b1b821382d7840e34b81771349d7c07049..99bac17a42167f82925f5d9de7ee572faad04103 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, |