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. |