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

Unified Diff: chrome/browser/browsing_data/browsing_data_remover.cc

Issue 12662032: Merge SavePackageFilePicker{,ChromeOS} (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: @r202870 Created 7 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/preferences_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browsing_data/browsing_data_remover.cc
diff --git a/chrome/browser/browsing_data/browsing_data_remover.cc b/chrome/browser/browsing_data/browsing_data_remover.cc
index 1c5935b6335078754fbef17bd17adf1f375bd83e..f2e62d1d41f250298092fd631d401758331a3e67 100644
--- a/chrome/browser/browsing_data/browsing_data_remover.cc
+++ b/chrome/browser/browsing_data/browsing_data_remover.cc
@@ -16,8 +16,7 @@
#include "chrome/browser/autofill/personal_data_manager_factory.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/browsing_data/browsing_data_helper.h"
-#include "chrome/browser/download/chrome_download_manager_delegate.h"
-#include "chrome/browser/download/download_service.h"
+#include "chrome/browser/download/download_prefs.h"
#include "chrome/browser/download/download_service_factory.h"
#include "chrome/browser/extensions/extension_service.h"
#include "chrome/browser/extensions/extension_special_storage_policy.h"
@@ -72,7 +71,6 @@
using content::BrowserContext;
using content::BrowserThread;
using content::DOMStorageContext;
-using content::DownloadManager;
using content::UserMetricsAction;
bool BrowsingDataRemover::is_removing_ = false;
@@ -340,14 +338,12 @@ void BrowsingDataRemover::RemoveImpl(int remove_mask,
if ((remove_mask & REMOVE_DOWNLOADS) && may_delete_history) {
content::RecordAction(UserMetricsAction("ClearBrowsingData_Downloads"));
- DownloadManager* download_manager =
+ content::DownloadManager* download_manager =
BrowserContext::GetDownloadManager(profile_);
download_manager->RemoveDownloadsBetween(delete_begin_, delete_end_);
- DownloadService* download_service =
- DownloadServiceFactory::GetForProfile(profile_);
- ChromeDownloadManagerDelegate* download_manager_delegate =
- download_service->GetDownloadManagerDelegate();
- download_manager_delegate->ClearLastDownloadPath();
+ DownloadPrefs* download_prefs = DownloadPrefs::FromDownloadManager(
+ download_manager);
+ download_prefs->SetSaveFilePath(download_prefs->DownloadPath());
}
// We ignore the REMOVE_COOKIES request if UNPROTECTED_WEB is not set,
« no previous file with comments | « no previous file | chrome/browser/chromeos/preferences_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698