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

Unified Diff: chrome/browser/ui/webui/chromeos/certificate_manager_dialog_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
« no previous file with comments | « no previous file | chrome/browser/ui/webui/chromeos/mobile_setup_ui.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/chromeos/certificate_manager_dialog_ui.cc
diff --git a/chrome/browser/ui/webui/chromeos/certificate_manager_dialog_ui.cc b/chrome/browser/ui/webui/chromeos/certificate_manager_dialog_ui.cc
index 52c4a548600250454bbe6e343d5f09bfebffe880..51096b2b2e17754eb2b3408d65e75def44fa85c8 100644
--- a/chrome/browser/ui/webui/chromeos/certificate_manager_dialog_ui.cc
+++ b/chrome/browser/ui/webui/chromeos/certificate_manager_dialog_ui.cc
@@ -49,6 +49,11 @@ class CertificateManagerDialogHTMLSource : 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 locale setting.
+ return false;
+ }
protected:
~CertificateManagerDialogHTMLSource() override {}
« no previous file with comments | « no previous file | chrome/browser/ui/webui/chromeos/mobile_setup_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698