Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5767)

Unified Diff: chrome/browser/download/download_target_determiner.cc

Issue 2668863002: [Extensions] Remove FeatureSwitch::easy_off_store_install (Closed)
Patch Set: Add TODO for histograms Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/download/download_target_determiner.cc
diff --git a/chrome/browser/download/download_target_determiner.cc b/chrome/browser/download/download_target_determiner.cc
index 5c071c7e0563fd029d4b321b247d758380d87581..9320803b853be1a17f5059ac5c349262353f42be 100644
--- a/chrome/browser/download/download_target_determiner.cc
+++ b/chrome/browser/download/download_target_determiner.cc
@@ -885,17 +885,6 @@ DownloadFileType::DangerLevel DownloadTargetDeterminer::GetDangerLevel(
return DownloadFileType::NOT_DANGEROUS;
}
-#if BUILDFLAG(ENABLE_EXTENSIONS)
- // Extensions that are not from the gallery are considered dangerous.
- // When off-store install is disabled we skip this, since in this case, we
- // will not offer to install the extension.
- if (extensions::FeatureSwitch::easy_off_store_install()->IsEnabled() &&
- is_extension_download &&
- !extensions::WebstoreInstaller::GetAssociatedApproval(*download_)) {
- return DownloadFileType::ALLOW_ON_USER_GESTURE;
- }
-#endif
-
// Anything the user has marked auto-open is OK if it's user-initiated.
if (download_prefs_->IsAutoOpenEnabledBasedOnExtension(virtual_path_) &&
download_->HasUserGesture())

Powered by Google App Engine
This is Rietveld 408576698