Commit bd9e1b76 authored by Min Qin's avatar Min Qin Committed by Commit Bot

Enable AllowDownloadResumptionWithoutStrongValidators on Android

BUG=965215

Change-Id: I06b867c8adcdeae00dcde4d603e0e16eb0a0820d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1869020
Commit-Queue: Min Qin <qinmin@chromium.org>
Reviewed-by: default avatarXing Liu <xingliu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#707999}
parent f46a00a3
...@@ -44,7 +44,12 @@ const base::Feature kUseInProgressDownloadManagerForDownloadService{ ...@@ -44,7 +44,12 @@ const base::Feature kUseInProgressDownloadManagerForDownloadService{
const base::Feature kAllowDownloadResumptionWithoutStrongValidators{ const base::Feature kAllowDownloadResumptionWithoutStrongValidators{
"AllowDownloadResumptionWithoutStrongValidators", "AllowDownloadResumptionWithoutStrongValidators",
base::FEATURE_DISABLED_BY_DEFAULT}; #if defined(OS_ANDROID)
base::FEATURE_ENABLED_BY_DEFAULT
#else
base::FEATURE_DISABLED_BY_DEFAULT
#endif
};
const base::Feature kUseParallelRequestsForUnknwonRangeSupport{ const base::Feature kUseParallelRequestsForUnknwonRangeSupport{
"UseParallelRequestForUnknownRangeSupport", "UseParallelRequestForUnknownRangeSupport",
......
...@@ -794,6 +794,12 @@ class TestRequestPauseHandler { ...@@ -794,6 +794,12 @@ class TestRequestPauseHandler {
}; };
class DownloadContentTest : public ContentBrowserTest { class DownloadContentTest : public ContentBrowserTest {
public:
DownloadContentTest() {
feature_list_.InitAndDisableFeature(
download::features::kAllowDownloadResumptionWithoutStrongValidators);
}
protected: protected:
void SetUpOnMainThread() override { void SetUpOnMainThread() override {
ASSERT_TRUE(downloads_directory_.CreateUniqueTempDir()); ASSERT_TRUE(downloads_directory_.CreateUniqueTempDir());
...@@ -1018,6 +1024,7 @@ class DownloadContentTest : public ContentBrowserTest { ...@@ -1018,6 +1024,7 @@ class DownloadContentTest : public ContentBrowserTest {
std::unique_ptr<TestShellDownloadManagerDelegate> test_delegate_; std::unique_ptr<TestShellDownloadManagerDelegate> test_delegate_;
TestDownloadResponseHandler test_response_handler_; TestDownloadResponseHandler test_response_handler_;
TestDownloadHttpResponse::InjectErrorCallback inject_error_callback_; TestDownloadHttpResponse::InjectErrorCallback inject_error_callback_;
base::test::ScopedFeatureList feature_list_;
}; };
constexpr int kValidationLength = 1024; constexpr int kValidationLength = 1024;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment