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

Unified Diff: chrome/browser/download/save_page_browsertest.cc

Issue 2853363002: Rename the DownloadService to DownloadCoreService (Closed)
Patch Set: Created 3 years, 8 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/download/save_page_browsertest.cc
diff --git a/chrome/browser/download/save_page_browsertest.cc b/chrome/browser/download/save_page_browsertest.cc
index c0b7b717e86ddaad0399ddbabc01a0923ce577c6..4da48733be4b188ee7affb3c6b959ac234fe40c8 100644
--- a/chrome/browser/download/save_page_browsertest.cc
+++ b/chrome/browser/download/save_page_browsertest.cc
@@ -25,10 +25,10 @@
#include "build/build_config.h"
#include "chrome/app/chrome_command_ids.h"
#include "chrome/browser/download/chrome_download_manager_delegate.h"
+#include "chrome/browser/download/download_core_service.h"
+#include "chrome/browser/download/download_core_service_factory.h"
#include "chrome/browser/download/download_history.h"
#include "chrome/browser/download/download_prefs.h"
-#include "chrome/browser/download/download_service.h"
-#include "chrome/browser/download/download_service_factory.h"
#include "chrome/browser/download/save_package_file_picker.h"
#include "chrome/browser/net/url_request_mock_util.h"
#include "chrome/browser/profiles/profile.h"
@@ -101,13 +101,14 @@ class DownloadPersistedObserver : public DownloadHistory::Observer {
: profile_(profile),
filter_(filter),
persisted_(false) {
- DownloadServiceFactory::GetForBrowserContext(profile_)->
- GetDownloadHistory()->AddObserver(this);
+ DownloadCoreServiceFactory::GetForBrowserContext(profile_)
+ ->GetDownloadHistory()
+ ->AddObserver(this);
}
~DownloadPersistedObserver() override {
- DownloadService* service = DownloadServiceFactory::GetForBrowserContext(
- profile_);
+ DownloadCoreService* service =
+ DownloadCoreServiceFactory::GetForBrowserContext(profile_);
if (service && service->GetDownloadHistory())
service->GetDownloadHistory()->RemoveObserver(this);
}
@@ -508,7 +509,7 @@ IN_PROC_BROWSER_TEST_F(SavePageBrowserTest, MAYBE_SaveHTMLOnlyTabDestroy) {
new DelayingDownloadManagerDelegate(browser()->profile()));
delaying_delegate->GetDownloadIdReceiverCallback().Run(
content::DownloadItem::kInvalidId + 1);
- DownloadServiceFactory::GetForBrowserContext(browser()->profile())
+ DownloadCoreServiceFactory::GetForBrowserContext(browser()->profile())
->SetDownloadManagerDelegateForTesting(std::move(delaying_delegate));
DownloadManager* manager(GetDownloadManager());
std::vector<DownloadItem*> downloads;

Powered by Google App Engine
This is Rietveld 408576698