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

Unified Diff: content/browser/devtools/protocol/page_handler.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/devtools/protocol/page_handler.cc
diff --git a/content/browser/devtools/protocol/page_handler.cc b/content/browser/devtools/protocol/page_handler.cc
index 4ab47a3834fc1d36d2c4395ea6a5a332276b4f39..24718cb42711ac14d3e151467aef2bbaa76152a9 100644
--- a/content/browser/devtools/protocol/page_handler.cc
+++ b/content/browser/devtools/protocol/page_handler.cc
@@ -221,10 +221,10 @@ Response PageHandler::Reload(const bool* bypassCache,
if (web_contents->IsCrashed() ||
(web_contents->GetController().GetVisibleEntry() &&
web_contents->GetController().GetVisibleEntry()->IsViewSourceMode())) {
- if (bypassCache && *bypassCache)
- web_contents->GetController().ReloadBypassingCache(false);
- else
- web_contents->GetController().Reload(false);
+ web_contents->GetController().Reload(false,
+ (bypassCache && *bypassCache)
+ ? ReloadType::BYPASSING_CACHE
+ : ReloadType::NORMAL);
return Response::OK();
} else {
// Handle reload in renderer except for crashed and view source mode.

Powered by Google App Engine
This is Rietveld 408576698