Chromium Code Reviews| 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..1b850ca54d120ee1d05875643a965b1b93f8f4fa 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( |
| + content::kDownloadResumptionFeature.name, std::string()); |
| + base::FeatureList::SetInstance(std::move(feature_list)); |
|
asanka
2015/12/18 19:25:35
+asvitkine: ^^^
|
| + |
| 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(); |