Commit 9ec5fbb4 authored by Varun Khaneja's avatar Varun Khaneja Committed by Commit Bot

Features: kBillingInterstitial to ON, drop kInspectDownloadedRarFiles

R=drubery

Bug: 867518, 750327
Change-Id: Id6ce3502a99a19767d0056a30cf626bc825ff56d
Reviewed-on: https://chromium-review.googlesource.com/c/1355134Reviewed-by: default avatarDaniel Rubery <drubery@chromium.org>
Reviewed-by: default avatarSteven Holte <holte@chromium.org>
Commit-Queue: Varun Khaneja <vakh@chromium.org>
Cr-Commit-Position: refs/heads/master@{#612370}
parent 30e5bc45
...@@ -94,8 +94,7 @@ void FileAnalyzer::Start(const base::FilePath& target_path, ...@@ -94,8 +94,7 @@ void FileAnalyzer::Start(const base::FilePath& target_path,
if (target_path_.MatchesExtension(FILE_PATH_LITERAL(".zip"))) { if (target_path_.MatchesExtension(FILE_PATH_LITERAL(".zip"))) {
StartExtractZipFeatures(); StartExtractZipFeatures();
} else if (target_path_.MatchesExtension(FILE_PATH_LITERAL(".rar")) && } else if (target_path_.MatchesExtension(FILE_PATH_LITERAL(".rar"))) {
base::FeatureList::IsEnabled(kInspectDownloadedRarFiles)) {
StartExtractRarFeatures(); StartExtractRarFeatures();
#if defined(OS_MACOSX) #if defined(OS_MACOSX)
} else if (target_path_.MatchesExtension(FILE_PATH_LITERAL(".dmg")) || } else if (target_path_.MatchesExtension(FILE_PATH_LITERAL(".dmg")) ||
......
...@@ -32,8 +32,7 @@ ClientDownloadRequest::DownloadType GetDownloadType( ...@@ -32,8 +32,7 @@ ClientDownloadRequest::DownloadType GetDownloadType(
// placeholder. The correct DownloadType will be determined based on the // placeholder. The correct DownloadType will be determined based on the
// result of analyzing the ZIP file. // result of analyzing the ZIP file.
return ClientDownloadRequest::ZIPPED_EXECUTABLE; return ClientDownloadRequest::ZIPPED_EXECUTABLE;
else if (base::FeatureList::IsEnabled(kInspectDownloadedRarFiles) && else if (file.MatchesExtension(FILE_PATH_LITERAL(".rar")))
file.MatchesExtension(FILE_PATH_LITERAL(".rar")))
// See the comment for .zip files. // See the comment for .zip files.
return ClientDownloadRequest::RAR_COMPRESSED_EXECUTABLE; return ClientDownloadRequest::RAR_COMPRESSED_EXECUTABLE;
else if (file.MatchesExtension(FILE_PATH_LITERAL(".dmg")) || else if (file.MatchesExtension(FILE_PATH_LITERAL(".dmg")) ||
......
...@@ -19,9 +19,7 @@ TEST(DownloadProtectionUtilTest, KnownValues) { ...@@ -19,9 +19,7 @@ TEST(DownloadProtectionUtilTest, KnownValues) {
GetDownloadType(base::FilePath(FILE_PATH_LITERAL("foo.crx")))); GetDownloadType(base::FilePath(FILE_PATH_LITERAL("foo.crx"))));
EXPECT_EQ(ClientDownloadRequest::ZIPPED_EXECUTABLE, EXPECT_EQ(ClientDownloadRequest::ZIPPED_EXECUTABLE,
GetDownloadType(base::FilePath(FILE_PATH_LITERAL("foo.zip")))); GetDownloadType(base::FilePath(FILE_PATH_LITERAL("foo.zip"))));
EXPECT_EQ(base::FeatureList::IsEnabled(kInspectDownloadedRarFiles) EXPECT_EQ(ClientDownloadRequest::RAR_COMPRESSED_EXECUTABLE,
? ClientDownloadRequest::RAR_COMPRESSED_EXECUTABLE
: ClientDownloadRequest::ARCHIVE,
GetDownloadType(base::FilePath(FILE_PATH_LITERAL("foo.rar")))); GetDownloadType(base::FilePath(FILE_PATH_LITERAL("foo.rar"))));
EXPECT_EQ(ClientDownloadRequest::MAC_EXECUTABLE, EXPECT_EQ(ClientDownloadRequest::MAC_EXECUTABLE,
GetDownloadType(base::FilePath(FILE_PATH_LITERAL("foo.pkg")))); GetDownloadType(base::FilePath(FILE_PATH_LITERAL("foo.pkg"))));
......
...@@ -24,7 +24,7 @@ const base::Feature kAdSamplerTriggerFeature{"SafeBrowsingAdSamplerTrigger", ...@@ -24,7 +24,7 @@ const base::Feature kAdSamplerTriggerFeature{"SafeBrowsingAdSamplerTrigger",
// Controls the billing interstitial UI. // Controls the billing interstitial UI.
const base::Feature kBillingInterstitial{"BillingInterstitial", const base::Feature kBillingInterstitial{"BillingInterstitial",
base::FEATURE_DISABLED_BY_DEFAULT}; base::FEATURE_ENABLED_BY_DEFAULT};
// If enabled in pre-network-service world, SafeBrowsing URL checks are done by // If enabled in pre-network-service world, SafeBrowsing URL checks are done by
// applying SafeBrowsing's URLLoaderThrottle subclasses to ThrottlingURLLoader. // applying SafeBrowsing's URLLoaderThrottle subclasses to ThrottlingURLLoader.
...@@ -39,9 +39,6 @@ const base::Feature kCheckByURLLoaderThrottle{ ...@@ -39,9 +39,6 @@ const base::Feature kCheckByURLLoaderThrottle{
const base::Feature kForceEnableResetPasswordWebUI{ const base::Feature kForceEnableResetPasswordWebUI{
"ForceEnableResetPasswordWebUI", base::FEATURE_DISABLED_BY_DEFAULT}; "ForceEnableResetPasswordWebUI", base::FEATURE_DISABLED_BY_DEFAULT};
const base::Feature kInspectDownloadedRarFiles{
"InspectDownloadedRarFiles", base::FEATURE_ENABLED_BY_DEFAULT};
const base::Feature kSuspiciousSiteTriggerQuotaFeature{ const base::Feature kSuspiciousSiteTriggerQuotaFeature{
"SafeBrowsingSuspiciousSiteTriggerQuota", base::FEATURE_ENABLED_BY_DEFAULT}; "SafeBrowsingSuspiciousSiteTriggerQuota", base::FEATURE_ENABLED_BY_DEFAULT};
...@@ -68,7 +65,6 @@ constexpr struct { ...@@ -68,7 +65,6 @@ constexpr struct {
{&kBillingInterstitial, true}, {&kBillingInterstitial, true},
{&kCheckByURLLoaderThrottle, true}, {&kCheckByURLLoaderThrottle, true},
{&kForceEnableResetPasswordWebUI, true}, {&kForceEnableResetPasswordWebUI, true},
{&kInspectDownloadedRarFiles, true},
{&kSuspiciousSiteTriggerQuotaFeature, true}, {&kSuspiciousSiteTriggerQuotaFeature, true},
{&kThreatDomDetailsTagAndAttributeFeature, false}, {&kThreatDomDetailsTagAndAttributeFeature, false},
{&kTriggerThrottlerDailyQuotaFeature, false}, {&kTriggerThrottlerDailyQuotaFeature, false},
......
...@@ -30,10 +30,6 @@ extern const base::Feature kCheckByURLLoaderThrottle; ...@@ -30,10 +30,6 @@ extern const base::Feature kCheckByURLLoaderThrottle;
// purpose. // purpose.
extern const base::Feature kForceEnableResetPasswordWebUI; extern const base::Feature kForceEnableResetPasswordWebUI;
// Controls whether .rar files downloaded by the user are inspected for being
// unsafe.
extern const base::Feature kInspectDownloadedRarFiles;
// Controls the daily quota for the suspicious site trigger. // Controls the daily quota for the suspicious site trigger.
extern const base::Feature kSuspiciousSiteTriggerQuotaFeature; extern const base::Feature kSuspiciousSiteTriggerQuotaFeature;
......
...@@ -2425,24 +2425,6 @@ ...@@ -2425,24 +2425,6 @@
] ]
} }
], ],
"InspectDownloadedRarFiles": [
{
"platforms": [
"chromeos",
"linux",
"mac",
"windows"
],
"experiments": [
{
"name": "Enabled",
"enable_features": [
"InspectDownloadedRarFiles"
]
}
]
}
],
"InstanceID": [ "InstanceID": [
{ {
"platforms": [ "platforms": [
......
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