| 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..e353a3d38eacd8dd68835770ee954034e24acfde 100644
|
| --- a/chrome/browser/sessions/chrome_serialized_navigation_driver.cc
|
| +++ b/chrome/browser/sessions/chrome_serialized_navigation_driver.cc
|
| @@ -76,28 +76,14 @@ void ChromeSerializedNavigationDriver::Sanitize(
|
| .ToEncodedData());
|
| }
|
|
|
| - if (base::FeatureList::IsEnabled(features::kNativeAndroidHistoryManager) &&
|
| - navigation->virtual_url().SchemeIs(content::kChromeUIScheme) &&
|
| - (navigation->virtual_url().host_piece() == chrome::kChromeUIHistoryHost ||
|
| - navigation->virtual_url().host_piece() ==
|
| - chrome::kChromeUIHistoryFrameHost)) {
|
| + if (navigation->virtual_url().SchemeIs(content::kChromeUIScheme) &&
|
| + navigation->virtual_url().host_piece() == chrome::kChromeUIHistoryHost) {
|
| // 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)
|
| }
|
|
|