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

Unified Diff: services/navigation/view_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: services/navigation/view_impl.cc
diff --git a/services/navigation/view_impl.cc b/services/navigation/view_impl.cc
index bb6145d7549c0e39ce39f35d0a6211e29519f299..ad86413e3468c27e96e3a449d7396765f8e238a2 100644
--- a/services/navigation/view_impl.cc
+++ b/services/navigation/view_impl.cc
@@ -99,11 +99,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(
+ true,
+ bypass_cache ? content::ReloadType::BYPASSING_CACHE
+ : content::ReloadType::NORMAL);
}
void ViewImpl::Stop() {
« content/public/browser/navigation_controller.h ('K') | « services/navigation/view_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698