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

Unified Diff: chrome/browser/ui/webui/chromeos/mobile_setup_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/mobile_setup_ui.cc
diff --git a/chrome/browser/ui/webui/chromeos/mobile_setup_ui.cc b/chrome/browser/ui/webui/chromeos/mobile_setup_ui.cc
index 1bff6a9351b59ca5ce9661c8a559176f5e97363d..26089fd707d4726d2cc1e9812d3d404b3f8d31e7 100644
--- a/chrome/browser/ui/webui/chromeos/mobile_setup_ui.cc
+++ b/chrome/browser/ui/webui/chromeos/mobile_setup_ui.cc
@@ -158,6 +158,11 @@ class MobileSetupUIHTMLSource : 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:
~MobileSetupUIHTMLSource() override {}

Powered by Google App Engine
This is Rietveld 408576698