Index: chrome/browser/ui/webui/history_ui.cc |
diff --git a/chrome/browser/ui/webui/history_ui.cc b/chrome/browser/ui/webui/history_ui.cc |
index 38092151f6bd78bddf7a3ebfbb7df10272cb8bfa..19264a6ca917fefc49e6c79f157cdabee0c9311d 100644 |
--- a/chrome/browser/ui/webui/history_ui.cc |
+++ b/chrome/browser/ui/webui/history_ui.cc |
@@ -25,6 +25,7 @@ |
#include "chrome/browser/profiles/profile.h" |
#include "chrome/browser/ui/browser.h" |
#include "chrome/browser/ui/browser_list.h" |
+#include "chrome/browser/ui/webui/chrome_url_data_manager.h" |
#include "chrome/browser/ui/webui/chrome_web_ui_data_source.h" |
#include "chrome/browser/ui/webui/favicon_source.h" |
#include "chrome/common/chrome_notification_types.h" |
@@ -158,7 +159,7 @@ BrowsingHistoryHandler::~BrowsingHistoryHandler() { |
void BrowsingHistoryHandler::RegisterMessages() { |
// Create our favicon data source. |
Profile* profile = Profile::FromWebUI(web_ui()); |
- profile->GetChromeURLDataManager()->AddDataSource( |
+ ChromeURLDataManager::AddDataSource(profile, |
new FaviconSource(profile, FaviconSource::FAVICON)); |
// Get notifications when history is cleared. |
@@ -473,7 +474,7 @@ HistoryUI::HistoryUI(content::WebUI* web_ui) : WebUIController(web_ui) { |
// Set up the chrome://history-frame/ source. |
Profile* profile = Profile::FromWebUI(web_ui); |
- profile->GetChromeURLDataManager()->AddDataSource(html_source); |
+ ChromeURLDataManager::AddDataSource(profile, html_source); |
} |
// static |