Index: chrome/browser/ui/webui/active_downloads_ui.cc |
diff --git a/chrome/browser/ui/webui/active_downloads_ui.cc b/chrome/browser/ui/webui/active_downloads_ui.cc |
index 816d323d699aa8d9cee71ef9d463505f568a05ca..c932af228978403ab92e3b25d19d5cb90eb39e12 100644 |
--- a/chrome/browser/ui/webui/active_downloads_ui.cc |
+++ b/chrome/browser/ui/webui/active_downloads_ui.cc |
@@ -210,7 +210,8 @@ ActiveDownloadsHandler::~ActiveDownloadsHandler() { |
} |
WebUIMessageHandler* ActiveDownloadsHandler::Attach(WebUI* web_ui) { |
- profile_ = web_ui->GetProfile(); |
+ profile_ = |
+ Profile::FromBrowserContext(web_ui->tab_contents()->browser_context()); |
profile_->GetChromeURLDataManager()->AddDataSource(new FileIconSourceCros()); |
tab_contents_ = web_ui->tab_contents(); |
return WebUIMessageHandler::Attach(web_ui); |