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

Unified Diff: content/browser/web_contents/web_contents_impl.cc

Issue 2561983002: NavigationController: Reload methods migration (Closed)
Patch Set: android 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: content/browser/web_contents/web_contents_impl.cc
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
index fa0b7da4b035f8a8e41789f1957fe34e06ccb543..c477dc53781d4f02f08b7bb643fcb1b5724b7fff 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -1068,7 +1068,7 @@ void WebContentsImpl::SetUserAgentOverride(const std::string& override) {
// different parts of the page loaded using different user agents.
NavigationEntry* entry = controller_.GetVisibleEntry();
if (IsLoading() && entry != NULL && entry->GetIsOverridingUserAgent())
- controller_.ReloadBypassingCache(true);
+ controller_.Reload(true, ReloadType::BYPASSING_CACHE);
for (auto& observer : observers_)
observer.UserAgentOverrideSet(override);

Powered by Google App Engine
This is Rietveld 408576698