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

Unified Diff: chrome/browser/browser_about_handler.cc

Issue 2830983005: Remove old webui History page on desktop and mobile (Closed)
Patch Set: axe more android stuff Created 3 years, 8 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/browser_about_handler.cc
diff --git a/chrome/browser/browser_about_handler.cc b/chrome/browser/browser_about_handler.cc
index e576359fc6d2a5bd135e3800023ef3ac7052486b..1195482a1ec45130216b6e7fed5bbdb626897a52 100644
--- a/chrome/browser/browser_about_handler.cc
+++ b/chrome/browser/browser_about_handler.cc
@@ -23,10 +23,6 @@
#include "content/public/common/content_features.h"
#include "extensions/features/features.h"
-#if !defined(OS_ANDROID)
-#include "chrome/browser/ui/webui/md_history_ui.h"
-#endif
-
#if defined(OS_ANDROID)
#include "chrome/browser/android/chrome_feature_list.h"
#endif
@@ -87,24 +83,9 @@ bool WillHandleBrowserAboutURL(GURL* url,
#endif // BUILDFLAG(ENABLE_EXTENSIONS)
// Redirect chrome://history.
} else if (host == chrome::kChromeUIHistoryHost) {
-#if defined(OS_ANDROID)
- // TODO(twellington): remove this after native Android history launches.
- // See http://crbug.com/654071.
- if (!base::FeatureList::IsEnabled(features::kNativeAndroidHistoryManager)) {
- // On Android, redirect directly to chrome://history-frame since
- // uber page is unsupported.
- host = chrome::kChromeUIHistoryFrameHost;
- }
-#else
- // Material design history is handled on the top-level chrome://history
- // host.
- if (base::FeatureList::IsEnabled(features::kMaterialDesignHistory)) {
- host = chrome::kChromeUIHistoryHost;
- path = url->path();
- } else {
- host = chrome::kChromeUIUberHost;
- path = chrome::kChromeUIHistoryHost + url->path();
- }
+#if !defined(OS_ANDROID)
+ host = chrome::kChromeUIHistoryHost;
+ path = url->path();
#endif
// Redirect chrome://settings, unless MD settings is enabled.
} else if (host == chrome::kChromeUISettingsHost) {

Powered by Google App Engine
This is Rietveld 408576698