| 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 6e8821deb6a07318fc6090583a6ed51d226b90df..6f78404217a53e972c96c3a9a644c860635d99b6 100644
|
| --- a/chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc
|
| +++ b/chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc
|
| @@ -37,7 +37,7 @@
|
| #include "content/public/browser/notification_service.h"
|
| #include "content/public/browser/storage_partition.h"
|
| #include "content/public/browser/web_contents.h"
|
| -#include "content/public/common/content_switches.h"
|
| +#include "content/public/common/content_features.h"
|
| #include "content/public/test/download_test_observer.h"
|
| #include "extensions/browser/event_router.h"
|
| #include "extensions/browser/notification_types.h"
|
| @@ -309,6 +309,12 @@ class DownloadExtensionTest : public ExtensionApiTest {
|
|
|
| // InProcessBrowserTest
|
| void SetUpOnMainThread() override {
|
| + base::FeatureList::ClearInstanceForTesting();
|
| + scoped_ptr<base::FeatureList> feature_list(new base::FeatureList);
|
| + feature_list->InitializeFromCommandLine(
|
| + features::kDownloadResumption.name, std::string());
|
| + base::FeatureList::SetInstance(std::move(feature_list));
|
| +
|
| ExtensionApiTest::SetUpOnMainThread();
|
| BrowserThread::PostTask(
|
| BrowserThread::IO, FROM_HERE,
|
| @@ -3858,8 +3864,6 @@ IN_PROC_BROWSER_TEST_F(
|
| IN_PROC_BROWSER_TEST_F(
|
| DownloadExtensionTest,
|
| MAYBE_DownloadExtensionTest_OnDeterminingFilename_InterruptedResume) {
|
| - base::CommandLine::ForCurrentProcess()->AppendSwitch(
|
| - switches::kEnableDownloadResumption);
|
| LoadExtension("downloads_split");
|
| ASSERT_TRUE(StartEmbeddedTestServer());
|
| GoOnTheRecord();
|
|
|