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

Unified Diff: chrome/browser/ui/gtk/download/download_shelf_gtk.cc

Issue 6905049: Detect removed files and reflect the state in chrome://downloads and the download shelf (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Correct typo Created 9 years, 7 months 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/gtk/download/download_shelf_gtk.cc
diff --git a/chrome/browser/ui/gtk/download/download_shelf_gtk.cc b/chrome/browser/ui/gtk/download/download_shelf_gtk.cc
index 81078350552ff946215a88c405315c37255b341e..976f86b75af89bcce9d33e2a698b70013d732a95 100644
--- a/chrome/browser/ui/gtk/download/download_shelf_gtk.cc
+++ b/chrome/browser/ui/gtk/download/download_shelf_gtk.cc
@@ -8,7 +8,9 @@
#include "chrome/browser/download/download_item.h"
#include "chrome/browser/download/download_item_model.h"
+#include "chrome/browser/download/download_manager.h"
#include "chrome/browser/download/download_util.h"
+#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/gtk/browser_window_gtk.h"
#include "chrome/browser/ui/gtk/custom_button.h"
@@ -186,6 +188,12 @@ void DownloadShelfGtk::Show() {
slide_widget_->Open();
browser_->UpdateDownloadShelfVisibility(true);
CancelAutoClose();
+
+ if (browser_->profile()->HasCreatedDownloadManager()) {
+ DownloadManager* download_manager =
+ browser_->profile()->GetDownloadManager();
+ download_manager->CheckForFilesRemoval();
+ }
}
void DownloadShelfGtk::Close() {

Powered by Google App Engine
This is Rietveld 408576698