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

Unified Diff: chrome/browser/ui/browser_commands.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/ui/browser_commands.cc
diff --git a/chrome/browser/ui/browser_commands.cc b/chrome/browser/ui/browser_commands.cc
index 285a38281ab495484b0677550b8f9e27b9dc3df7..e0c55d33c85574dd156606365f078ebf74c2407a 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) {

Powered by Google App Engine
This is Rietveld 408576698