Index: chrome/browser/ui/webui/chromeos/imageburner/imageburner_utils.cc |
diff --git a/chrome/browser/ui/webui/chromeos/imageburner/imageburner_utils.cc b/chrome/browser/ui/webui/chromeos/imageburner/imageburner_utils.cc |
index eec9b4a61356a826f9ebbfb71e83c9acbc46f897..555be2f34a527f2e00632a6de20151fb8b2bc49f 100644 |
--- a/chrome/browser/ui/webui/chromeos/imageburner/imageburner_utils.cc |
+++ b/chrome/browser/ui/webui/chromeos/imageburner/imageburner_utils.cc |
@@ -305,7 +305,7 @@ void BurnManager::FetchConfigFile(TabContents* tab_contents, |
config_file_requested_ = true; |
config_file_path_ = GetImageDir().Append(kConfigFileName); |
- download_manager_ = tab_contents->profile()->GetDownloadManager(); |
+ download_manager_ = tab_contents->context()->GetDownloadManager(); |
download_manager_->AddObserver(this); |
downloader()->AddListener(this, config_file_url_); |
downloader()->DownloadFile(config_file_url_, config_file_path_, tab_contents); |
@@ -429,7 +429,7 @@ void Downloader::OnFileStreamCreatedOnUIThread(const GURL& url, |
if (created_file_stream) { |
DownloadManager* download_manager = |
- tab_contents->profile()->GetDownloadManager(); |
+ tab_contents->context()->GetDownloadManager(); |
DownloadSaveInfo save_info; |
save_info.file_path = file_path; |
save_info.file_stream = linked_ptr<net::FileStream>(created_file_stream); |