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

Unified Diff: chrome/browser/ui/cocoa/download/download_item_mac.mm

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
Index: chrome/browser/ui/cocoa/download/download_item_mac.mm
diff --git a/chrome/browser/ui/cocoa/download/download_item_mac.mm b/chrome/browser/ui/cocoa/download/download_item_mac.mm
index f1a4ad5367dd44b41e9fd05c8a26e257b1db5aee..8c84210c73c13508ed662f12095b2798b455c08a 100644
--- a/chrome/browser/ui/cocoa/download/download_item_mac.mm
+++ b/chrome/browser/ui/cocoa/download/download_item_mac.mm
@@ -29,7 +29,7 @@ void DownloadItemMac::OnDownloadUpdated(DownloadItem* download) {
DCHECK_EQ(download, download_model_->download());
if ([item_controller_ isDangerousMode] &&
- download->safety_state() == DownloadItem::DANGEROUS_BUT_VALIDATED) {
+ download->GetSafetyState() == DownloadItem::DANGEROUS_BUT_VALIDATED) {
// We have been approved.
[item_controller_ clearDangerousMode];
}
@@ -44,16 +44,16 @@ void DownloadItemMac::OnDownloadUpdated(DownloadItem* download) {
[item_controller_ updateToolTip];
}
- switch (download->state()) {
+ switch (download->GetState()) {
case DownloadItem::REMOVING:
[item_controller_ remove]; // We're deleted now!
break;
case DownloadItem::COMPLETE:
- if (download->auto_opened()) {
+ if (download->GetAutoOpened()) {
[item_controller_ remove]; // We're deleted now!
return;
}
- download_util::NotifySystemOfDownloadComplete(download->full_path());
+ download_util::NotifySystemOfDownloadComplete(download->GetFullPath());
// fall through
case DownloadItem::IN_PROGRESS:
case DownloadItem::INTERRUPTED:

Powered by Google App Engine
This is Rietveld 408576698