| Index: chrome/browser/android/offline_pages/offline_page_tab_helper.cc
|
| diff --git a/chrome/browser/android/offline_pages/offline_page_tab_helper.cc b/chrome/browser/android/offline_pages/offline_page_tab_helper.cc
|
| index b307ad890755b9eca75a64313db1ccd2b9b7aca2..b4d8d8ca5a938afa98d42258f61aadbb19659c9e 100644
|
| --- a/chrome/browser/android/offline_pages/offline_page_tab_helper.cc
|
| +++ b/chrome/browser/android/offline_pages/offline_page_tab_helper.cc
|
| @@ -83,33 +83,6 @@ void OfflinePageTabHelper::DidStartNavigation(
|
| GURL navigated_url = navigation_handle->GetURL();
|
| if (offline_page_ && navigated_url != offline_page_->GetOfflineURL())
|
| offline_page_ = nullptr;
|
| -
|
| - // Ignore navigations that are forward or back transitions in the nav stack
|
| - // which are not at the head of the stack.
|
| - // TODO(dimich): Not sure this is needed. Clarify and remove. Bug 624216.
|
| - const content::NavigationController& controller =
|
| - web_contents()->GetController();
|
| - if (controller.GetEntryCount() > 0 &&
|
| - controller.GetCurrentEntryIndex() != -1 &&
|
| - controller.GetCurrentEntryIndex() < controller.GetEntryCount() - 1) {
|
| - return;
|
| - }
|
| -
|
| - content::BrowserContext* context = web_contents()->GetBrowserContext();
|
| - if (net::NetworkChangeNotifier::IsOffline()) {
|
| - GetPagesForRedirectToOffline(
|
| - RedirectResult::REDIRECTED_ON_DISCONNECTED_NETWORK, navigated_url);
|
| - return;
|
| - }
|
| -
|
| - OfflinePageModel* offline_page_model =
|
| - OfflinePageModelFactory::GetForBrowserContext(context);
|
| - if (!offline_page_model)
|
| - return;
|
| -
|
| - offline_page_model->GetPageByOfflineURL(
|
| - navigated_url, base::Bind(&OfflinePageTabHelper::RedirectToOnline,
|
| - weak_ptr_factory_.GetWeakPtr(), navigated_url));
|
| }
|
|
|
| void OfflinePageTabHelper::DidFinishNavigation(
|
|
|