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

Unified Diff: chrome/browser/ui/cocoa/download/download_shelf_controller.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_shelf_controller.mm
diff --git a/chrome/browser/ui/cocoa/download/download_shelf_controller.mm b/chrome/browser/ui/cocoa/download/download_shelf_controller.mm
index 037e0225e35feb7e5ae583b029d71c4a441d8f07..8e4ab7aa3846542c05a7ff0ebee81d875590e844 100644
--- a/chrome/browser/ui/cocoa/download/download_shelf_controller.mm
+++ b/chrome/browser/ui/cocoa/download/download_shelf_controller.mm
@@ -353,12 +353,12 @@ const NSSize kHoverCloseButtonDefaultSize = { 16, 16 };
download->IsCancelled() ||
download->IsInterrupted();
if (isTransferDone &&
- download->safety_state() != DownloadItem::DANGEROUS) {
+ download->GetSafetyState() != DownloadItem::DANGEROUS) {
[self remove:itemController];
} else {
// Treat the item as opened when we close. This way if we get shown again
// the user need not open this item for the shelf to auto-close.
- download->set_opened(true);
+ download->SetOpened(true);
++i;
}
}
@@ -387,7 +387,7 @@ const NSSize kHoverCloseButtonDefaultSize = { 16, 16 };
for (NSUInteger i = 0; i < [downloadItemControllers_ count]; ++i) {
DownloadItemController* itemController =
[downloadItemControllers_ objectAtIndex:i];
- if (![itemController download]->opened())
+ if (![itemController download]->GetOpened())
return NO;
}
return YES;
« no previous file with comments | « chrome/browser/ui/cocoa/download/download_item_mac.mm ('k') | chrome/browser/ui/cocoa/download/download_util_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698