Index: content/browser/android/content_view_core_impl.cc |
diff --git a/content/browser/android/content_view_core_impl.cc b/content/browser/android/content_view_core_impl.cc |
index c423adb26a525acca2f5cb89f0401acbcca22de2..032555a9d1dd8e3b981de6f855e6d02dab4a46ab 100644 |
--- a/content/browser/android/content_view_core_impl.cc |
+++ b/content/browser/android/content_view_core_impl.cc |
@@ -1200,10 +1200,12 @@ void ContentViewCoreImpl::StopLoading(JNIEnv* env, jobject obj) { |
web_contents_->Stop(); |
} |
-void ContentViewCoreImpl::Reload(JNIEnv* env, jobject obj) { |
- // Set check_for_repost parameter to false as we have no repost confirmation |
- // dialog ("confirm form resubmission" screen will still appear, however). |
- if (web_contents_->GetController().NeedsReload()) |
+void ContentViewCoreImpl::Reload(JNIEnv* env, |
+ jobject obj, |
+ jboolean ignore_cache) { |
+ if (ignore_cache) |
+ web_contents_->GetController().ReloadIgnoringCache(true); |
+ else if (web_contents_->GetController().NeedsReload()) |
joth
2013/11/06 19:57:28
nit: use {} on if else ladder
gone
2013/11/06 21:24:35
Done.
|
web_contents_->GetController().LoadIfNecessary(); |
joth
2013/11/06 19:57:28
this is counter intuitive: if we "need a reload" w
gone
2013/11/06 21:24:35
Don't know the reasoning :/ I do know that the co
Ted C
2013/11/06 21:38:14
At least in the past, Reload didn't work for sessi
|
else |
web_contents_->GetController().Reload(true); |