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

Unified Diff: services/navigation/view_impl.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 | « services/navigation/view_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/navigation/view_impl.cc
diff --git a/services/navigation/view_impl.cc b/services/navigation/view_impl.cc
index da3a043a77e757a1290ee1726bc16ec9184f2ab6..6434335e8a4e772d10ca4ffdf41e68daf411df23 100644
--- a/services/navigation/view_impl.cc
+++ b/services/navigation/view_impl.cc
@@ -109,11 +109,11 @@ void ViewImpl::NavigateToOffset(int offset) {
web_view_->GetWebContents()->GetController().GoToOffset(offset);
}
-void ViewImpl::Reload(bool skip_cache) {
- if (skip_cache)
- web_view_->GetWebContents()->GetController().Reload(true);
- else
- web_view_->GetWebContents()->GetController().ReloadBypassingCache(true);
+void ViewImpl::Reload(bool bypass_cache) {
+ web_view_->GetWebContents()->GetController().Reload(
+ bypass_cache ? content::ReloadType::BYPASSING_CACHE
+ : content::ReloadType::NORMAL,
+ true);
}
void ViewImpl::Stop() {
« no previous file with comments | « services/navigation/view_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698