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

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

Issue 2795183003: Adding logic to prevent offline previews fallback to LoFi/Weblite (Closed)
Patch Set: 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
« no previous file with comments | « no previous file | chrome/browser/previews/previews_infobar_delegate_unittest.cc » ('j') | 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 3a34ccddb693d3f087eb995260c839f582692a79..f6f3cd25c589eed7f8627e6ada61e1d9e12fdd42 100644
--- a/chrome/browser/previews/previews_infobar_delegate.cc
+++ b/chrome/browser/previews/previews_infobar_delegate.cc
@@ -151,7 +151,11 @@ 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);
+ // Prevent LoFi and lite page modes from showing after reload.
+ // TODO(ryansturm): rename DISABLE_LOFI_MODE to DISABLE_PREVIEWS.
+ // crbug.com/707272
+ web_contents->GetController().Reload(content::ReloadType::DISABLE_LOFI_MODE,
+ true);
}
return true;
« no previous file with comments | « no previous file | chrome/browser/previews/previews_infobar_delegate_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698