Index: chrome/browser/dom_ui/dom_ui_theme_source.cc |
diff --git a/chrome/browser/dom_ui/dom_ui_theme_source.cc b/chrome/browser/dom_ui/dom_ui_theme_source.cc |
index 49e227f2b6b8f7f3b595c05232affbe1c662ffad..8361198d3b749aa037c369c470961a4b1f49f778 100644 |
--- a/chrome/browser/dom_ui/dom_ui_theme_source.cc |
+++ b/chrome/browser/dom_ui/dom_ui_theme_source.cc |
@@ -53,8 +53,10 @@ static std::string StripQueryParams(const std::string& path) { |
DOMUIThemeSource::DOMUIThemeSource(Profile* profile) |
: DataSource(chrome::kChromeUIThemePath, MessageLoop::current()), |
profile_(profile) { |
- InitNewTabCSS(); |
- InitNewIncognitoTabCSS(); |
+ if (profile->IsOffTheRecord()) |
+ InitNewIncognitoTabCSS(); |
+ else |
+ InitNewTabCSS(); |
} |
void DOMUIThemeSource::StartDataRequest(const std::string& path, |