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

Unified Diff: chrome/browser/android/offline_pages/offline_page_tab_helper.cc

Issue 2472863002: Adding offline navigations to the previews blacklist (Closed)
Patch Set: megjablon comments Created 4 years, 1 month 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
« no previous file with comments | « no previous file | chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_io_data.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 521585e3c0ac8cf134fe00bb582e89d3ffae4119..9a938dc4dbbb3bca38623d529cabc82dd30a320c 100644
--- a/chrome/browser/android/offline_pages/offline_page_tab_helper.cc
+++ b/chrome/browser/android/offline_pages/offline_page_tab_helper.cc
@@ -56,9 +56,7 @@ void OfflinePageTabHelper::DidStartNavigation(
provisional_offline_info_.Clear();
// If not a fragment navigation, clear the cached offline info.
- if (offline_info_.offline_page.get() &&
- !OfflinePageUtils::EqualsIgnoringFragment(offline_info_.offline_page->url,
- navigation_handle->GetURL())) {
+ if (offline_info_.offline_page.get() && !navigation_handle->IsSamePage()) {
offline_info_.Clear();
}
}
« no previous file with comments | « no previous file | chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_io_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698