Index: chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.cc |
diff --git a/chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.cc b/chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.cc |
index 96cd31d3a9481f446ae30fbc20edb82f1375fc92..2818aa42be11ab6e5a312cb32881091b96a70918 100644 |
--- a/chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.cc |
+++ b/chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.cc |
@@ -13,6 +13,7 @@ |
#include "chrome/browser/chrome_notification_types.h" |
#include "chrome/browser/content_settings/host_content_settings_map_factory.h" |
#include "chrome/browser/domain_reliability/service_factory.h" |
+#include "chrome/browser/download/download_prefs.h" |
#include "chrome/browser/history/history_service_factory.h" |
#include "chrome/browser/history/web_history_service_factory.h" |
#include "chrome/browser/io_thread.h" |
@@ -475,6 +476,15 @@ void ChromeBrowsingDataRemoverDelegate::RemoveEmbedderData( |
} |
////////////////////////////////////////////////////////////////////////////// |
+ // REMOVE_DOWNLOADS |
+ if ((remove_mask & BrowsingDataRemover::REMOVE_DOWNLOADS) && |
+ may_delete_history) { |
+ DownloadPrefs* download_prefs = DownloadPrefs::FromDownloadManager( |
+ BrowserContext::GetDownloadManager(profile_)); |
+ download_prefs->SetSaveFilePath(download_prefs->DownloadPath()); |
+ } |
+ |
+ ////////////////////////////////////////////////////////////////////////////// |
// REMOVE_COOKIES |
// We ignore the REMOVE_COOKIES request if UNPROTECTED_WEB is not set, |
// so that callers who request REMOVE_SITE_DATA with PROTECTED_WEB |