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

Unified Diff: content/browser/android/content_view_core_impl.cc

Issue 49353008: Add way to reload the page, ignoring the cache (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Take 4 Created 7 years, 1 month 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/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);

Powered by Google App Engine
This is Rietveld 408576698