Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6944)

Unified Diff: chrome/browser/ui/webui/active_downloads_ui.cc

Issue 7554008: Removal of Profile from content part 6. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);

Powered by Google App Engine
This is Rietveld 408576698