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

Unified Diff: chrome/browser/previews/previews_infobar_tab_helper.cc

Issue 2848293002: Adding the Previews infobar to pages that show a client LoFi image (Closed)
Patch Set: removed range check Created 3 years, 8 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/previews/previews_infobar_tab_helper.cc
diff --git a/chrome/browser/previews/previews_infobar_tab_helper.cc b/chrome/browser/previews/previews_infobar_tab_helper.cc
index 3083f0c3483687a308b5bbdb2dee1819fabd85ee..8f75a198eddb251a682a65f31bfbd7e36d60e36c 100644
--- a/chrome/browser/previews/previews_infobar_tab_helper.cc
+++ b/chrome/browser/previews/previews_infobar_tab_helper.cc
@@ -110,7 +110,7 @@ void PreviewsInfoBarTabHelper::DidFinishNavigation(
data_reduction_proxy_settings &&
data_reduction_proxy_settings->IsDataReductionProxyEnabled(),
base::Bind(&AddPreviewNavigationCallback, browser_context_,
- navigation_handle->GetURL(),
+ navigation_handle->GetRedirectChain()[0],
previews::PreviewsType::OFFLINE));
// Don't try to show other infobars if this is an offline preview.
return;

Powered by Google App Engine
This is Rietveld 408576698