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

Unified Diff: chrome/browser/ui/webui/theme_source.h

Issue 2381093002: Move GetNewTabCSS() caching off the startup path. (Closed)
Patch Set: Fix test. Created 4 years, 2 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/theme_source.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/theme_source.h
diff --git a/chrome/browser/ui/webui/theme_source.h b/chrome/browser/ui/webui/theme_source.h
index 22aee4be146291b8e608dd93bee84e991678ddd7..be1f7274b68b2557729ab4037c7079c3508a3e5d 100644
--- a/chrome/browser/ui/webui/theme_source.h
+++ b/chrome/browser/ui/webui/theme_source.h
@@ -33,7 +33,6 @@ class ThemeSource : public content::URLDataSource {
std::string GetMimeType(const std::string& path) const override;
base::MessageLoop* MessageLoopForRequestPath(
const std::string& path) const override;
- bool ShouldReplaceExistingSource() const override;
bool ShouldServiceRequest(const net::URLRequest* request) const override;
private:
@@ -49,12 +48,9 @@ class ThemeSource : public content::URLDataSource {
int resource_id,
float scale);
- // The original profile (never an OTR profile).
+ // The profile this object was initialized with.
Profile* profile_;
- // We grab the CSS early so we don't have to go back to the UI thread later.
- scoped_refptr<base::RefCountedMemory> css_bytes_;
-
DISALLOW_COPY_AND_ASSIGN(ThemeSource);
};
« no previous file with comments | « no previous file | chrome/browser/ui/webui/theme_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698