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

Unified Diff: chrome/browser/ui/cocoa/download/download_item_cell.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
« no previous file with comments | « chrome/browser/ui/browser.cc ('k') | chrome/browser/ui/cocoa/download/download_item_controller.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/download/download_item_cell.mm
diff --git a/chrome/browser/ui/cocoa/download/download_item_cell.mm b/chrome/browser/ui/cocoa/download/download_item_cell.mm
index 793d805dfeee8349640e84100d789452c4395571..3b29656d66e7a319bdf7032c9528d81ec361a661 100644
--- a/chrome/browser/ui/cocoa/download/download_item_cell.mm
+++ b/chrome/browser/ui/cocoa/download/download_item_cell.mm
@@ -175,7 +175,7 @@ const int kInterruptedAnimationDuration = 2.5;
[self showSecondaryTitle];
}
- switch (downloadModel->download()->state()) {
+ switch (downloadModel->download()->GetState()) {
case DownloadItem::COMPLETE:
// Small downloads may start in a complete state due to asynchronous
// notifications. In this case, we'll get a second complete notification
@@ -210,7 +210,7 @@ const int kInterruptedAnimationDuration = 2.5;
percentDone_ = -2;
break;
case DownloadItem::IN_PROGRESS:
- percentDone_ = downloadModel->download()->is_paused() ?
+ percentDone_ = downloadModel->download()->IsPaused() ?
-1 : downloadModel->download()->PercentComplete();
break;
default:
« no previous file with comments | « chrome/browser/ui/browser.cc ('k') | chrome/browser/ui/cocoa/download/download_item_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698