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()) { |