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

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

Issue 2561983002: NavigationController: Reload methods migration (Closed)
Patch Set: one more mac build fix Created 4 years 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 55ad0e3a4f03d5401e5097817e285a2dbaf4436c..3975c49609b7e4bb33d66d0deb2e60e8637afb44 100644
--- a/chrome/browser/previews/previews_infobar_delegate.cc
+++ b/chrome/browser/previews/previews_infobar_delegate.cc
@@ -135,7 +135,8 @@ bool PreviewsInfoBarDelegate::LinkClicked(WindowOpenDisposition disposition) {
InfoBarService::WebContentsFromInfoBar(infobar());
if (infobar_type_ == LITE_PAGE || infobar_type_ == LOFI) {
if (infobar_type_ == LITE_PAGE)
- web_contents->GetController().ReloadDisableLoFi(true);
+ web_contents->GetController().Reload(
+ content::ReloadType::DISABLE_LOFI_MODE, true);
else if (infobar_type_ == LOFI)
web_contents->ReloadLoFiImages();
@@ -144,7 +145,7 @@ bool PreviewsInfoBarDelegate::LinkClicked(WindowOpenDisposition disposition) {
web_contents->GetBrowserContext());
data_reduction_proxy_settings->IncrementLoFiUserRequestsForImages();
} else if (infobar_type_ == OFFLINE) {
- web_contents->GetController().Reload(true);
+ web_contents->GetController().Reload(content::ReloadType::NORMAL, true);
}
return true;

Powered by Google App Engine
This is Rietveld 408576698