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

Unified Diff: content/browser/frame_host/navigation_controller_android.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
Index: content/browser/frame_host/navigation_controller_android.cc
diff --git a/content/browser/frame_host/navigation_controller_android.cc b/content/browser/frame_host/navigation_controller_android.cc
index 88643f4840cc31cc8a6cb2408ce0b8b585bbff8d..2360efda93b9b3de5c8c9ad57ab303f2bf3a86f3 100644
--- a/content/browser/frame_host/navigation_controller_android.cc
+++ b/content/browser/frame_host/navigation_controller_android.cc
@@ -147,14 +147,14 @@ void NavigationControllerAndroid::ContinuePendingReload(
void NavigationControllerAndroid::Reload(JNIEnv* env,
const JavaParamRef<jobject>& obj,
jboolean check_for_repost) {
- navigation_controller_->Reload(check_for_repost);
+ navigation_controller_->Reload(ReloadType::NORMAL, check_for_repost);
}
void NavigationControllerAndroid::ReloadBypassingCache(
JNIEnv* env,
const JavaParamRef<jobject>& obj,
jboolean check_for_repost) {
- navigation_controller_->ReloadBypassingCache(check_for_repost);
+ navigation_controller_->Reload(ReloadType::BYPASSING_CACHE, check_for_repost);
}
void NavigationControllerAndroid::RequestRestoreLoad(
@@ -340,7 +340,8 @@ void NavigationControllerAndroid::SetUseDesktopUserAgent(
if (reload_on_state_change) {
// Reloading the page will send the override down as part of the
// navigation IPC message.
- navigation_controller_->ReloadOriginalRequestURL(false);
+ // TODO(toyoshim): Should this call use |true| for check_for_post argument?
+ navigation_controller_->Reload(ReloadType::ORIGINAL_REQUEST_URL, false);
}
}
« no previous file with comments | « content/browser/devtools/render_frame_devtools_agent_host.cc ('k') | content/browser/frame_host/navigation_controller_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698