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

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

Issue 1440113002: [MD] Change appearance of incognito NTP to MD spec. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 1 month 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 | « chrome/browser/ui/webui/theme_handler.cc ('k') | ui/webui/resources/images/2x/incognito_icon.png » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/theme_source.cc
diff --git a/chrome/browser/ui/webui/theme_source.cc b/chrome/browser/ui/webui/theme_source.cc
index a1efb62425cde2f72c44fc9e4ebb42614bc10600..6ea356924d9b275eccf7be1839e58fde8e21cb61 100644
--- a/chrome/browser/ui/webui/theme_source.cc
+++ b/chrome/browser/ui/webui/theme_source.cc
@@ -68,8 +68,9 @@ void ProcessResourceOnUIThread(int resource_id,
ThemeSource::ThemeSource(Profile* profile)
: profile_(profile->GetOriginalProfile()) {
+ // NB: it's important that this is |profile| and not |profile_|.
NTPResourceCache::WindowType win_type = NTPResourceCache::GetWindowType(
- profile_, NULL);
+ profile, NULL);
css_bytes_ =
NTPResourceCacheFactory::GetForProfile(profile)->GetNewTabCSS(win_type);
}
« no previous file with comments | « chrome/browser/ui/webui/theme_handler.cc ('k') | ui/webui/resources/images/2x/incognito_icon.png » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698