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
......@@ -43,8 +43,13 @@ const base::Feature kUseInProgressDownloadManagerForDownloadService{
base::FEATURE_DISABLED_BY_DEFAULT};
const base::Feature kAllowDownloadResumptionWithoutStrongValidators{
"AllowDownloadResumptionWithoutStrongValidators",
base::FEATURE_DISABLED_BY_DEFAULT};
"AllowDownloadResumptionWithoutStrongValidators",
#if defined(OS_ANDROID)
base::FEATURE_ENABLED_BY_DEFAULT
#else
base::FEATURE_DISABLED_BY_DEFAULT
#endif
};
const base::Feature kUseParallelRequestsForUnknwonRangeSupport{
"UseParallelRequestForUnknownRangeSupport",
......
......@@ -794,6 +794,12 @@ class TestRequestPauseHandler {
};
class DownloadContentTest : public ContentBrowserTest {
public:
DownloadContentTest() {
feature_list_.InitAndDisableFeature(
download::features::kAllowDownloadResumptionWithoutStrongValidators);
}
protected:
void SetUpOnMainThread() override {
ASSERT_TRUE(downloads_directory_.CreateUniqueTempDir());
......@@ -1018,6 +1024,7 @@ class DownloadContentTest : public ContentBrowserTest {
std::unique_ptr<TestShellDownloadManagerDelegate> test_delegate_;
TestDownloadResponseHandler test_response_handler_;
TestDownloadHttpResponse::InjectErrorCallback inject_error_callback_;
base::test::ScopedFeatureList feature_list_;
};
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