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

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

Issue 2848293002: Adding the Previews infobar to pages that show a client LoFi image (Closed)
Patch Set: sclittle comments 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_delegate.cc
diff --git a/chrome/browser/previews/previews_infobar_delegate.cc b/chrome/browser/previews/previews_infobar_delegate.cc
index f37679a55693404c4be770b863392d30c37d2faa..5b47885c9319382d7645647b6df84556c81e75be 100644
--- a/chrome/browser/previews/previews_infobar_delegate.cc
+++ b/chrome/browser/previews/previews_infobar_delegate.cc
@@ -164,11 +164,12 @@ bool PreviewsInfoBarDelegate::LinkClicked(WindowOpenDisposition disposition) {
infobar_tab_helper->committed_data_saver_navigation_id().value());
}
- if (infobar_type_ == LITE_PAGE)
+ if (infobar_type_ == LITE_PAGE) {
web_contents->GetController().Reload(
content::ReloadType::DISABLE_LOFI_MODE, true);
- else if (infobar_type_ == LOFI)
+ } else if (infobar_type_ == LOFI) {
web_contents->ReloadLoFiImages();
+ }
} else if (infobar_type_ == OFFLINE) {
// Prevent LoFi and lite page modes from showing after reload.
// TODO(ryansturm): rename DISABLE_LOFI_MODE to DISABLE_PREVIEWS.

Powered by Google App Engine
This is Rietveld 408576698