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

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

Issue 2561983002: NavigationController: Reload methods migration (Closed)
Patch Set: merge master 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 5c4679f1b432f4f35cc13747527d6e41bfc0814b..80f8eabaf0ff57e62d0ff5ec173ba80efb5abcdc 100644
--- a/chrome/browser/previews/previews_infobar_delegate.cc
+++ b/chrome/browser/previews/previews_infobar_delegate.cc
@@ -139,7 +139,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();
@@ -148,7 +149,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;
« no previous file with comments | « chrome/browser/plugins/plugin_observer.cc ('k') | chrome/browser/renderer_context_menu/render_view_context_menu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698