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

Unified Diff: chrome/browser/ui/browser.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/browser.cc
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
index 5cbc61600ad23e5a3403514fe9b59d715b3fa82b..fced7c87eeb5c55a58c405189758bf617a684df7 100644
--- a/chrome/browser/ui/browser.cc
+++ b/chrome/browser/ui/browser.cc
@@ -2453,6 +2453,13 @@ void Browser::UpdateUIForNavigationInTab(TabContentsWrapper* contents,
contents->tab_contents()->Focus();
}
+void Browser::CheckForFilesRemoval() {
+ if (profile_->HasCreatedDownloadManager()) {
+ DownloadManager* download_manager = profile_->GetDownloadManager();
+ download_manager->CheckForFilesRemoval();
+ }
+}
+
GURL Browser::GetHomePage() const {
// --homepage overrides any preferences.
const CommandLine& command_line = *CommandLine::ForCurrentProcess();
@@ -3220,6 +3227,8 @@ void Browser::OnStartDownload(DownloadItem* download, TabContents* tab) {
if (!window())
return;
+ CheckForFilesRemoval();
Randy Smith (Not in Mondays) 2011/05/13 20:45:32 I apologize--I know I recommended this location, b
haraken1 2011/05/16 11:42:27 I agree that we should not include too frequent pr
Randy Smith (Not in Mondays) 2011/05/16 20:57:12 So I think the use case you describe (a "reload" o
+
#if defined(OS_CHROMEOS)
// Don't show content browser for extension/theme downloads from gallery.
if (download->is_extension_install()) {

Powered by Google App Engine
This is Rietveld 408576698