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

Unified Diff: chrome/browser/extensions/api/downloads/downloads_api_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/extensions/api/downloads/downloads_api_browsertest.cc
diff --git a/chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc b/chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc
index 1a4cb53507f92e725c45badd30bdcaa2a066a476..49d5ba8cdd77eeb04fdadccf36cdf218a52ba09f 100644
--- a/chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc
+++ b/chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc
@@ -21,9 +21,9 @@
#include "base/strings/stringprintf.h"
#include "base/threading/thread_restrictions.h"
#include "build/build_config.h"
+#include "chrome/browser/download/download_core_service.h"
+#include "chrome/browser/download/download_core_service_factory.h"
#include "chrome/browser/download/download_file_icon_extractor.h"
-#include "chrome/browser/download/download_service.h"
-#include "chrome/browser/download/download_service_factory.h"
#include "chrome/browser/download/download_test_file_activity_observer.h"
#include "chrome/browser/extensions/api/downloads/downloads_api.h"
#include "chrome/browser/extensions/browser_action_test_util.h"
@@ -4145,11 +4145,13 @@ IN_PROC_BROWSER_TEST_F(DownloadExtensionTest,
DownloadExtensionTest_SetShelfEnabled) {
LoadExtension("downloads_split");
EXPECT_TRUE(RunFunction(new DownloadsSetShelfEnabledFunction(), "[false]"));
- EXPECT_FALSE(DownloadServiceFactory::GetForBrowserContext(
- browser()->profile())->IsShelfEnabled());
+ EXPECT_FALSE(
+ DownloadCoreServiceFactory::GetForBrowserContext(browser()->profile())
+ ->IsShelfEnabled());
EXPECT_TRUE(RunFunction(new DownloadsSetShelfEnabledFunction(), "[true]"));
- EXPECT_TRUE(DownloadServiceFactory::GetForBrowserContext(
- browser()->profile())->IsShelfEnabled());
+ EXPECT_TRUE(
+ DownloadCoreServiceFactory::GetForBrowserContext(browser()->profile())
+ ->IsShelfEnabled());
// TODO(benjhayden) Test that existing shelves are hidden.
// TODO(benjhayden) Test multiple extensions.
// TODO(benjhayden) Test disabling extensions.

Powered by Google App Engine
This is Rietveld 408576698