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

Unified Diff: chrome/browser/ui/views/download/download_shelf_view.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
Index: chrome/browser/ui/views/download/download_shelf_view.cc
diff --git a/chrome/browser/ui/views/download/download_shelf_view.cc b/chrome/browser/ui/views/download/download_shelf_view.cc
index 70c335b2aabda91dd67f072b72321e2645fc60b9..65f17a39464098dc1eb1371e2bc66e5997c26379 100644
--- a/chrome/browser/ui/views/download/download_shelf_view.cc
+++ b/chrome/browser/ui/views/download/download_shelf_view.cc
@@ -420,12 +420,12 @@ void DownloadShelfView::Closed() {
download->IsCancelled() ||
download->IsInterrupted();
if (is_transfer_done &&
- download->safety_state() != DownloadItem::DANGEROUS) {
+ download->GetSafetyState() != DownloadItem::DANGEROUS) {
RemoveDownloadView(download_views_[i]);
} 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;
}
}
@@ -433,7 +433,7 @@ void DownloadShelfView::Closed() {
bool DownloadShelfView::CanAutoClose() {
for (size_t i = 0; i < download_views_.size(); ++i) {
- if (!download_views_[i]->download()->opened())
+ if (!download_views_[i]->download()->GetOpened())
return false;
}
return true;
« no previous file with comments | « chrome/browser/ui/views/download/download_item_view.cc ('k') | chrome/browser/ui/webui/active_downloads_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698