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

Unified Diff: chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.cc

Issue 8503018: Split DownloadItem into an ABC, an Impl, and a Mock. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: merge Created 9 years, 1 month 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/ui/webui/active_downloads_ui.cc ('k') | chrome/browser/ui/webui/downloads_dom_handler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.cc
diff --git a/chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.cc b/chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.cc
index 2761f0f182a9e95e15fff3fbe18cfd85f1a7042b..2de3065f398e782726b26eb699082b1ce6a3e179 100644
--- a/chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.cc
+++ b/chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.cc
@@ -223,20 +223,20 @@ void WebUIHandler::OnDownloadUpdated(DownloadItem* download) {
DownloadCompleted(false);
DCHECK(!active_download_item_);
} else if (download->IsComplete()) {
- burn_manager_->set_final_zip_file_path(download->full_path());
+ burn_manager_->set_final_zip_file_path(download->GetFullPath());
DownloadCompleted(true);
DCHECK(!active_download_item_);
} else if (download->IsPartialDownload() &&
state_machine_->state() == StateMachine::DOWNLOADING) {
base::TimeDelta remaining_time;
download->TimeRemaining(&remaining_time);
- SendProgressSignal(DOWNLOAD, download->received_bytes(),
- download->total_bytes(), &remaining_time);
+ SendProgressSignal(DOWNLOAD, download->GetReceivedBytes(),
+ download->GetTotalBytes(), &remaining_time);
}
}
void WebUIHandler::OnDownloadOpened(DownloadItem* download) {
- if (download->safety_state() == DownloadItem::DANGEROUS)
+ if (download->GetSafetyState() == DownloadItem::DANGEROUS)
download->DangerousDownloadValidated();
}
@@ -250,7 +250,7 @@ void WebUIHandler::ModelChanged() {
for (std::vector<DownloadItem*>::const_iterator it = downloads.begin();
it != downloads.end();
++it) {
- if ((*it)->original_url() == image_download_url_) {
+ if ((*it)->GetOriginalUrl() == image_download_url_) {
(*it)->AddObserver(this);
active_download_item_ = *it;
break;
« no previous file with comments | « chrome/browser/ui/webui/active_downloads_ui.cc ('k') | chrome/browser/ui/webui/downloads_dom_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698