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

Unified Diff: chrome/browser/sessions/chrome_serialized_navigation_driver.cc

Issue 2830983005: Remove old webui History page on desktop and mobile (Closed)
Patch Set: merge Created 3 years, 7 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/sessions/chrome_serialized_navigation_driver.cc
diff --git a/chrome/browser/sessions/chrome_serialized_navigation_driver.cc b/chrome/browser/sessions/chrome_serialized_navigation_driver.cc
index 9f808f530acdb13a3d0578c6b3ab07df260715cd..33af29750ff8d930e33b67c94c2bf0ec20b7f92f 100644
--- a/chrome/browser/sessions/chrome_serialized_navigation_driver.cc
+++ b/chrome/browser/sessions/chrome_serialized_navigation_driver.cc
@@ -76,28 +76,16 @@ void ChromeSerializedNavigationDriver::Sanitize(
.ToEncodedData());
}
- if (base::FeatureList::IsEnabled(features::kNativeAndroidHistoryManager) &&
- navigation->virtual_url().SchemeIs(content::kChromeUIScheme) &&
+ if (navigation->virtual_url().SchemeIs(content::kChromeUIScheme) &&
(navigation->virtual_url().host_piece() == chrome::kChromeUIHistoryHost ||
navigation->virtual_url().host_piece() ==
- chrome::kChromeUIHistoryFrameHost)) {
+ chrome::kDeprecatedChromeUIHistoryFrameHost)) {
// Rewrite the old history Web UI to the new android native history.
navigation->set_virtual_url(GURL(chrome::kChromeUINativeHistoryURL));
navigation->set_original_request_url(navigation->virtual_url());
navigation->set_encoded_page_state(
content::PageState::CreateFromURL(navigation->virtual_url())
.ToEncodedData());
- } else if (!base::FeatureList::IsEnabled(
- features::kNativeAndroidHistoryManager) &&
- navigation->virtual_url().SchemeIs(
- chrome::kChromeUINativeScheme) &&
- navigation->virtual_url().host_piece() ==
- chrome::kChromeUIHistoryHost) {
- // If the android native history UI has been disabled, redirect
- // chrome-native://history to the old web UI.
- navigation->set_virtual_url(GURL(chrome::kChromeUIHistoryURL));
- navigation->set_original_request_url(navigation->virtual_url());
- navigation->set_encoded_page_state(std::string());
}
#endif // defined(OS_ANDROID)
}

Powered by Google App Engine
This is Rietveld 408576698