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

Unified Diff: chrome/browser/download/notification/download_notification_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/notification/download_notification_browsertest.cc
diff --git a/chrome/browser/download/notification/download_notification_browsertest.cc b/chrome/browser/download/notification/download_notification_browsertest.cc
index 4edbbb4b836b075a5f9355b590c2a04d674a13a0..5bc9c42a42a19af40177a38d6e3297dbc27d9d86 100644
--- a/chrome/browser/download/notification/download_notification_browsertest.cc
+++ b/chrome/browser/download/notification/download_notification_browsertest.cc
@@ -13,9 +13,9 @@
#include "base/strings/utf_string_conversions.h"
#include "chrome/browser/chromeos/profiles/profile_helper.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_prefs.h"
-#include "chrome/browser/download/download_service.h"
-#include "chrome/browser/download/download_service_factory.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/signin/signin_manager_factory.h"
#include "chrome/browser/ui/browser.h"
@@ -331,7 +331,7 @@ class DownloadNotificationTest : public DownloadNotificationTestBase {
test_delegate.reset(new TestChromeDownloadManagerDelegate(profile));
test_delegate->GetDownloadIdReceiverCallback().Run(
content::DownloadItem::kInvalidId + 1);
- DownloadServiceFactory::GetForBrowserContext(profile)
+ DownloadCoreServiceFactory::GetForBrowserContext(profile)
->SetDownloadManagerDelegateForTesting(std::move(test_delegate));
DownloadNotificationTestBase::SetUpOnMainThread();
@@ -339,7 +339,7 @@ class DownloadNotificationTest : public DownloadNotificationTestBase {
TestChromeDownloadManagerDelegate* GetDownloadManagerDelegate() const {
return static_cast<TestChromeDownloadManagerDelegate*>(
- DownloadServiceFactory::GetForBrowserContext(browser()->profile())
+ DownloadCoreServiceFactory::GetForBrowserContext(browser()->profile())
->GetDownloadManagerDelegate());
}
@@ -352,7 +352,7 @@ class DownloadNotificationTest : public DownloadNotificationTestBase {
std::unique_ptr<TestChromeDownloadManagerDelegate> incognito_test_delegate;
incognito_test_delegate.reset(
new TestChromeDownloadManagerDelegate(incognito_profile));
- DownloadServiceFactory::GetForBrowserContext(incognito_profile)
+ DownloadCoreServiceFactory::GetForBrowserContext(incognito_profile)
->SetDownloadManagerDelegateForTesting(
std::move(incognito_test_delegate));
}
@@ -361,8 +361,8 @@ class DownloadNotificationTest : public DownloadNotificationTestBase {
const {
Profile* incognito_profile = incognito_browser()->profile();
return static_cast<TestChromeDownloadManagerDelegate*>(
- DownloadServiceFactory::GetForBrowserContext(incognito_profile)->
- GetDownloadManagerDelegate());
+ DownloadCoreServiceFactory::GetForBrowserContext(incognito_profile)
+ ->GetDownloadManagerDelegate());
}
void CreateDownload() {

Powered by Google App Engine
This is Rietveld 408576698