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

Unified Diff: chrome/browser/ui/webui/downloads_util.cc

Issue 1710083005: Remove old downloads UI; Material Design version is now the default. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove testing/ Created 4 years, 10 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
« no previous file with comments | « chrome/browser/ui/webui/downloads_util.h ('k') | chrome/browser/ui/webui/downloads_util_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/downloads_util.cc
diff --git a/chrome/browser/ui/webui/downloads_util.cc b/chrome/browser/ui/webui/downloads_util.cc
deleted file mode 100644
index 404cc80ee3f143792c0ba98093382121b027b479..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/webui/downloads_util.cc
+++ /dev/null
@@ -1,30 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/browser/ui/webui/downloads_util.h"
-
-#include "base/command_line.h"
-#include "base/metrics/field_trial.h"
-#include "base/strings/string_util.h"
-#include "chrome/common/channel_info.h"
-#include "chrome/common/chrome_switches.h"
-#include "components/version_info/version_info.h"
-
-const char kMaterialDesignDownloadsFinchTrialName[] = "MaterialDesignDownloads";
-
-bool MdDownloadsEnabled() {
- // Intentionally call this before checking command line to assign a group.
- std::string group = base::FieldTrialList::FindFullName(
- kMaterialDesignDownloadsFinchTrialName);
-
- base::CommandLine* cl = base::CommandLine::ForCurrentProcess();
- if (cl->HasSwitch(switches::kEnableMaterialDesignDownloads))
- return true;
-
- if (cl->HasSwitch(switches::kDisableMaterialDesignDownloads))
- return false;
-
- return base::StartsWith(group, "Enabled",
- base::CompareCase::INSENSITIVE_ASCII);
-}
« no previous file with comments | « chrome/browser/ui/webui/downloads_util.h ('k') | chrome/browser/ui/webui/downloads_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698