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

Unified Diff: chrome/browser/ui/webui/chromeos/sim_unlock_ui.cc

Issue 2763013003: Specify AllowCaching = false for some ChromeOS UI pages (Closed)
Patch Set: one more build fix Created 3 years, 9 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: chrome/browser/ui/webui/chromeos/sim_unlock_ui.cc
diff --git a/chrome/browser/ui/webui/chromeos/sim_unlock_ui.cc b/chrome/browser/ui/webui/chromeos/sim_unlock_ui.cc
index b6635c092b443ad93a92899070d2187d5adc57fe..7826d8e46e984e60d5c65ecb60ec557c433af68c 100644
--- a/chrome/browser/ui/webui/chromeos/sim_unlock_ui.cc
+++ b/chrome/browser/ui/webui/chromeos/sim_unlock_ui.cc
@@ -94,6 +94,11 @@ class SimUnlockUIHTMLSource : public content::URLDataSource {
return "text/html";
}
bool ShouldAddContentSecurityPolicy() const override { return false; }
+ bool AllowCaching() const override {
+ // Should not be cached to reflect dynamically-generated contents that may
+ // depend on current settings.
+ return false;
+ }
private:
~SimUnlockUIHTMLSource() override {}
« no previous file with comments | « chrome/browser/ui/webui/chromeos/proxy_settings_ui.cc ('k') | chrome/browser/ui/webui/chromeos/slow_trace_ui.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698