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

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: Profile helper function, 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
« no previous file with comments | « chrome/browser/profiles/profile.cc ('k') | chrome/browser/ui/webui/bug_report_ui.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..3579d93626d129d2ca6a126f104ab03e872a507f 100644
--- a/chrome/browser/ui/webui/active_downloads_ui.cc
+++ b/chrome/browser/ui/webui/active_downloads_ui.cc
@@ -210,7 +210,7 @@ ActiveDownloadsHandler::~ActiveDownloadsHandler() {
}
WebUIMessageHandler* ActiveDownloadsHandler::Attach(WebUI* web_ui) {
- profile_ = web_ui->GetProfile();
+ profile_ = Profile::FromWebUI(web_ui);
profile_->GetChromeURLDataManager()->AddDataSource(new FileIconSourceCros());
tab_contents_ = web_ui->tab_contents();
return WebUIMessageHandler::Attach(web_ui);
« no previous file with comments | « chrome/browser/profiles/profile.cc ('k') | chrome/browser/ui/webui/bug_report_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698