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

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

Issue 1538933002: Enable download resumption by default. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Forgot ChromeOS Created 5 years 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_shelf_context_menu.cc
diff --git a/chrome/browser/download/download_shelf_context_menu.cc b/chrome/browser/download/download_shelf_context_menu.cc
index b541b59883561fbcb75a72712290c25802abbf41..91a57284c403a22c9a5d39b0ed68a42504ec783d 100644
--- a/chrome/browser/download/download_shelf_context_menu.cc
+++ b/chrome/browser/download/download_shelf_context_menu.cc
@@ -4,10 +4,9 @@
#include "chrome/browser/download/download_shelf_context_menu.h"
-#include "base/command_line.h"
#include "chrome/browser/download/download_item_model.h"
#include "chrome/grit/generated_resources.h"
-#include "content/public/common/content_switches.h"
+#include "content/public/common/content_features.h"
#include "extensions/common/extension.h"
#include "ui/base/l10n/l10n_util.h"
@@ -21,8 +20,7 @@ namespace {
// Returns true if downloads resumption is enabled.
bool IsDownloadResumptionEnabled() {
- return base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableDownloadResumption);
+ return base::FeatureList::IsEnabled(features::kDownloadResumption);
}
} // namespace

Powered by Google App Engine
This is Rietveld 408576698