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

Unified Diff: chrome/browser/download/download_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/download_browsertest.cc
diff --git a/chrome/browser/download/download_browsertest.cc b/chrome/browser/download/download_browsertest.cc
index 1bf11fd9594fd79e3c7c8f0613d27a82d0144530..09c9855c58368ac777a5d47c900c5d29f1127c68 100644
--- a/chrome/browser/download/download_browsertest.cc
+++ b/chrome/browser/download/download_browsertest.cc
@@ -38,13 +38,13 @@
#include "chrome/browser/chrome_notification_types.h"
#include "chrome/browser/download/chrome_download_manager_delegate.h"
#include "chrome/browser/download/download_commands.h"
+#include "chrome/browser/download/download_core_service.h"
+#include "chrome/browser/download/download_core_service_factory.h"
#include "chrome/browser/download/download_crx_util.h"
#include "chrome/browser/download/download_history.h"
#include "chrome/browser/download/download_item_model.h"
#include "chrome/browser/download/download_prefs.h"
#include "chrome/browser/download/download_request_limiter.h"
-#include "chrome/browser/download/download_service.h"
-#include "chrome/browser/download/download_service_factory.h"
#include "chrome/browser/download/download_shelf.h"
#include "chrome/browser/download/download_target_determiner.h"
#include "chrome/browser/download/download_test_file_activity_observer.h"
@@ -350,13 +350,14 @@ class HistoryObserver : public DownloadHistory::Observer {
: profile_(profile),
waiting_(false),
seen_stored_(false) {
- DownloadServiceFactory::GetForBrowserContext(profile_)->
- GetDownloadHistory()->AddObserver(this);
+ DownloadCoreServiceFactory::GetForBrowserContext(profile_)
+ ->GetDownloadHistory()
+ ->AddObserver(this);
}
~HistoryObserver() override {
- DownloadService* service = DownloadServiceFactory::GetForBrowserContext(
- profile_);
+ DownloadCoreService* service =
+ DownloadCoreServiceFactory::GetForBrowserContext(profile_);
if (service && service->GetDownloadHistory())
service->GetDownloadHistory()->RemoveObserver(this);
}
@@ -376,8 +377,9 @@ class HistoryObserver : public DownloadHistory::Observer {
}
void OnDownloadHistoryDestroyed() override {
- DownloadServiceFactory::GetForBrowserContext(profile_)->
- GetDownloadHistory()->RemoveObserver(this);
+ DownloadCoreServiceFactory::GetForBrowserContext(profile_)
+ ->GetDownloadHistory()
+ ->RemoveObserver(this);
}
void WaitForStored() {

Powered by Google App Engine
This is Rietveld 408576698