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 9c4bb1d76f2efadb7e91e453c0329f2105429c0b..82186c36d5a5550edffc5c97deb511725ba1b3fb 100644 |
--- a/chrome/browser/ui/webui/most_visited_handler.cc |
+++ b/chrome/browser/ui/webui/most_visited_handler.cc |
@@ -26,6 +26,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" |
@@ -73,8 +74,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, |