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

Unified Diff: chrome/browser/ui/browser_commands.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
« no previous file with comments | « chrome/browser/repost_form_warning_browsertest.cc ('k') | chrome/browser/ui/browser_instant_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser_commands.cc
diff --git a/chrome/browser/ui/browser_commands.cc b/chrome/browser/ui/browser_commands.cc
index e220a189af38b055469883079d3893b43fcfa13a..1b189f33c6052b838bb3af6315d936af49fa021c 100644
--- a/chrome/browser/ui/browser_commands.cc
+++ b/chrome/browser/ui/browser_commands.cc
@@ -264,10 +264,10 @@ void ReloadInternal(Browser* browser,
if (devtools && devtools->ReloadInspectedWebContents(bypass_cache))
return;
- if (bypass_cache)
- new_tab->GetController().Reload(true, content::ReloadType::BYPASSING_CACHE);
- else
- new_tab->GetController().Reload(true);
+ new_tab->GetController().Reload(bypass_cache
+ ? content::ReloadType::BYPASSING_CACHE
+ : content::ReloadType::NORMAL,
+ true);
}
bool IsShowingWebContentsModalDialog(Browser* browser) {
@@ -1180,7 +1180,7 @@ void ToggleRequestTabletSite(Browser* browser) {
current_tab->SetUserAgentOverride(content::BuildUserAgentFromOSAndProduct(
kOsOverrideForTabletSite, product));
}
- controller.ReloadOriginalRequestURL(true);
+ controller.Reload(content::ReloadType::ORIGINAL_REQUEST_URL, true);
}
void ToggleFullscreenMode(Browser* browser) {
« no previous file with comments | « chrome/browser/repost_form_warning_browsertest.cc ('k') | chrome/browser/ui/browser_instant_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698