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

Unified Diff: chrome/browser/dom_ui/dom_ui_theme_source.cc

Issue 344027: Some new tab ui fixes. (Closed)
Patch Set: Created 11 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/dom_ui/new_tab_ui.cc » ('j') | chrome/browser/dom_ui/new_tab_ui.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
« no previous file with comments | « no previous file | chrome/browser/dom_ui/new_tab_ui.cc » ('j') | chrome/browser/dom_ui/new_tab_ui.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698