| Index: chrome/browser/ui/webui/downloads_ui.cc
|
| diff --git a/chrome/browser/ui/webui/downloads_ui.cc b/chrome/browser/ui/webui/downloads_ui.cc
|
| index f05845597edf806bcb8aa1f506c5c79a87e683ba..54cbc03d9808988cc067a85bb12cf1d84329d090 100644
|
| --- a/chrome/browser/ui/webui/downloads_ui.cc
|
| +++ b/chrome/browser/ui/webui/downloads_ui.cc
|
| @@ -12,7 +12,7 @@
|
| #include "chrome/browser/download/download_service.h"
|
| #include "chrome/browser/download/download_service_factory.h"
|
| #include "chrome/browser/profiles/profile.h"
|
| -#include "chrome/browser/ui/webui/chrome_url_data_manager.h"
|
| +#include "chrome/browser/ui/webui/chrome_url_data_manager_factory.h"
|
| #include "chrome/browser/ui/webui/chrome_web_ui_data_source.h"
|
| #include "chrome/browser/ui/webui/downloads_dom_handler.h"
|
| #include "chrome/common/url_constants.h"
|
| @@ -94,8 +94,8 @@ DownloadsUI::DownloadsUI(content::WebUI* web_ui) : WebUIController(web_ui) {
|
| web_ui->AddMessageHandler(handler);
|
|
|
| // Set up the chrome://downloads/ source.
|
| - profile->GetChromeURLDataManager()->AddDataSource(
|
| - CreateDownloadsUIHTMLSource());
|
| + ChromeURLDataManagerFactory::GetForProfile(profile)->
|
| + AddDataSource(CreateDownloadsUIHTMLSource());
|
| }
|
|
|
| // static
|
|
|