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

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

Issue 2792443002: Adding logic to prevent offline previews fallback to LoFi/Weblite (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/previews/previews_infobar_delegate.cc
diff --git a/chrome/browser/previews/previews_infobar_delegate.cc b/chrome/browser/previews/previews_infobar_delegate.cc
index 987b4a0a4408d5b5e672ed30bb39e77eb8ff1fad..f42fb25aa023619fb02d628aa7d5639d2da202cb 100644
--- a/chrome/browser/previews/previews_infobar_delegate.cc
+++ b/chrome/browser/previews/previews_infobar_delegate.cc
@@ -155,7 +155,8 @@ bool PreviewsInfoBarDelegate::LinkClicked(WindowOpenDisposition disposition) {
web_contents->GetBrowserContext());
data_reduction_proxy_settings->IncrementLoFiUserRequestsForImages();
} else if (infobar_type_ == OFFLINE) {
- web_contents->GetController().Reload(content::ReloadType::NORMAL, true);
+ web_contents->GetController().Reload(content::ReloadType::DISABLE_LOFI_MODE,
bengr 2017/03/31 16:59:56 Does this flag also disable lite pages? If so, ple
RyanSturm 2017/03/31 18:53:42 DISABLE_LOFI_MODE triggers PREVIEWS_NO_TRANSFORM,
+ true);
}
return true;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698