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

Unified Diff: content/shell/browser/shell.cc

Issue 1905873002: Add content_browsertests for testing cache control flags (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review #13 Created 4 years, 7 months 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/shell/browser/shell.cc
diff --git a/content/shell/browser/shell.cc b/content/shell/browser/shell.cc
index 1c1fb4b3d3a3bfbe4b4f302363db761dab214b02..c082cdb73505c0e9c84a3ae288ab801040f69e2b 100644
--- a/content/shell/browser/shell.cc
+++ b/content/shell/browser/shell.cc
@@ -264,6 +264,11 @@ void Shell::Reload() {
web_contents_->Focus();
}
+void Shell::ReloadBypassingCache() {
+ web_contents_->GetController().ReloadBypassingCache(false);
+ web_contents_->Focus();
+}
+
void Shell::Stop() {
web_contents_->Stop();
web_contents_->Focus();

Powered by Google App Engine
This is Rietveld 408576698