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

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

Issue 2763013003: Specify AllowCaching = false for some ChromeOS UI pages (Closed)
Patch Set: 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..d5942b5658b016da582a0062683822a8c78ac061 100644
--- a/chrome/browser/ui/webui/chromeos/mobile_setup_ui.cc
+++ b/chrome/browser/ui/webui/chromeos/mobile_setup_ui.cc
@@ -628,6 +628,11 @@ MobileSetupUI::MobileSetupUI(content::WebUI* web_ui)
content::WebContentsObserver::Observe(web_ui->GetWebContents());
}
+bool MobileSetupUI::AllowCaching() const {
+ // Should not be cached to reflect dynamically-generated contents.
+ return false;
+}
+
void MobileSetupUI::DidFinishNavigation(
content::NavigationHandle* navigation_handle) {
if (!navigation_handle->HasCommitted() ||

Powered by Google App Engine
This is Rietveld 408576698