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

Side by Side Diff: chrome/browser/ui/webui/chromeos/slow_trace_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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/webui/chromeos/slow_trace_ui.h" 5 #include "chrome/browser/ui/webui/chromeos/slow_trace_ui.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/memory/ref_counted_memory.h" 10 #include "base/memory/ref_counted_memory.h"
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 70
71 SlowTraceController::SlowTraceController(content::WebUI* web_ui) 71 SlowTraceController::SlowTraceController(content::WebUI* web_ui)
72 : WebUIController(web_ui) { 72 : WebUIController(web_ui) {
73 SlowTraceSource* html_source = new SlowTraceSource(); 73 SlowTraceSource* html_source = new SlowTraceSource();
74 74
75 // Set up the chrome://slow_trace/ source. 75 // Set up the chrome://slow_trace/ source.
76 Profile* profile = Profile::FromWebUI(web_ui); 76 Profile* profile = Profile::FromWebUI(web_ui);
77 content::URLDataSource::Add(profile, html_source); 77 content::URLDataSource::Add(profile, html_source);
78 } 78 }
79 79
80 bool SlowTraceController::IsCacheAllowed() {
81 // Should not be cached to reflect dynamically-generated contents.
82 return false;
83 }
84
80 } // namespace chromeos 85 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698