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

Unified Diff: extensions/browser/guest_view/web_view/web_view_guest.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: extensions/browser/guest_view/web_view/web_view_guest.cc
diff --git a/extensions/browser/guest_view/web_view/web_view_guest.cc b/extensions/browser/guest_view/web_view/web_view_guest.cc
index ecfcb9aeaf49852f4858baee9c049cf7da2fea34..4276b3c9af6e79f98dbc8a99223c0b5b795a0ea8 100644
--- a/extensions/browser/guest_view/web_view/web_view_guest.cc
+++ b/extensions/browser/guest_view/web_view/web_view_guest.cc
@@ -726,7 +726,7 @@ void WebViewGuest::Reload() {
// TODO(fsamuel): Don't check for repost because we don't want to show
// Chromium's repost warning. We might want to implement a separate API
// for registering a callback if a repost is about to happen.
- web_contents()->GetController().Reload(false);
+ web_contents()->GetController().Reload(content::ReloadType::NORMAL, false);
}
void WebViewGuest::SetUserAgentOverride(
@@ -887,7 +887,7 @@ void WebViewGuest::UserAgentOverrideSet(const std::string& user_agent) {
if (!entry)
return;
entry->SetIsOverridingUserAgent(!user_agent.empty());
- web_contents()->GetController().Reload(false);
+ web_contents()->GetController().Reload(content::ReloadType::NORMAL, false);
}
void WebViewGuest::FrameNameChanged(RenderFrameHost* render_frame_host,
« no previous file with comments | « extensions/browser/guest_view/web_view/web_view_apitest.cc ('k') | services/navigation/public/interfaces/view.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698