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

Unified Diff: chrome/browser/android/ntp/new_tab_page_url_handler.cc

Issue 2676893002: [Android History] Fix chrome://history redirect (Closed)
Patch Set: [Android History] Fix chrome://history redirect Created 3 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
Index: chrome/browser/android/ntp/new_tab_page_url_handler.cc
diff --git a/chrome/browser/android/ntp/new_tab_page_url_handler.cc b/chrome/browser/android/ntp/new_tab_page_url_handler.cc
index 4633522836ea388584fffcb0d65d89ddfafbe033..38dc11cb5e41825e861359a3eff38eff69d93ff9 100644
--- a/chrome/browser/android/ntp/new_tab_page_url_handler.cc
+++ b/chrome/browser/android/ntp/new_tab_page_url_handler.cc
@@ -9,6 +9,7 @@
#include "base/strings/string_util.h"
#include "chrome/browser/android/chrome_feature_list.h"
#include "chrome/common/url_constants.h"
+#include "content/public/common/content_features.h"
#include "content/public/common/url_constants.h"
#include "url/gurl.h"
@@ -31,14 +32,13 @@ bool HandleAndroidNativePageURL(GURL* url,
return true;
}
- // TODO(twellington): stop redirecting chrome://bookmarks to
- // chrome-native://bookmarks when M57 is a distant memory.
+ // TODO(twellington): stop redirecting chrome://history to
+ // chrome-native://history when M57 is a distant memory.
// See http://crbug.com/654071.
- if (base::FeatureList::IsEnabled(
- chrome::android::kNativeAndroidHistoryManager) &&
+ if (base::FeatureList::IsEnabled(features::kNativeAndroidHistoryManager) &&
(url->host() == kChromeUIHistoryHost ||
url->host() == kChromeUIHistoryFrameHost)) {
- *url = GURL(kChromeUINativeHistoryURL);
+ *url = GURL(content::kChromeUINativeHistoryURL);
return true;
}

Powered by Google App Engine
This is Rietveld 408576698