| Index: chrome/browser/ui/webui/downloads_dom_handler.cc
|
| diff --git a/chrome/browser/ui/webui/downloads_dom_handler.cc b/chrome/browser/ui/webui/downloads_dom_handler.cc
|
| index a96ebd157ca1a0a54592117e60b798d08c13fccd..133f0824c861569bef9ebaf54db3ff6a7b68b7e8 100644
|
| --- a/chrome/browser/ui/webui/downloads_dom_handler.cc
|
| +++ b/chrome/browser/ui/webui/downloads_dom_handler.cc
|
| @@ -27,7 +27,7 @@
|
| #include "chrome/browser/platform_util.h"
|
| #include "chrome/browser/profiles/profile.h"
|
| #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.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/fileicon_source.h"
|
| #include "chrome/common/url_constants.h"
|
| #include "content/public/browser/download_item.h"
|
| @@ -94,12 +94,11 @@ DownloadsDOMHandler::DownloadsDOMHandler(content::DownloadManager* dlm)
|
| original_profile_download_manager_(NULL),
|
| ALLOW_THIS_IN_INITIALIZER_LIST(weak_ptr_factory_(this)) {
|
| // Create our fileicon data source.
|
| - Profile::FromBrowserContext(dlm->GetBrowserContext())->
|
| - GetChromeURLDataManager()->AddDataSource(new FileIconSource());
|
| + Profile* profile = Profile::FromBrowserContext(dlm->GetBrowserContext());
|
| + ChromeURLDataManagerFactory::GetForProfile(profile)->
|
| + AddDataSource(new FileIconSource());
|
|
|
| // Figure out our parent DownloadManager, if any.
|
| - Profile* profile =
|
| - Profile::FromBrowserContext(download_manager_->GetBrowserContext());
|
| Profile* original_profile = profile->GetOriginalProfile();
|
| if (original_profile != profile) {
|
| original_profile_download_manager_ = DownloadServiceFactory::GetForProfile(
|
|
|