Chromium Code Reviews| 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_|. |
|
Dan Beam
2015/11/13 01:32:22
random question: is it too weird to just initializ
Dan Beam
2015/11/13 01:33:23
well
: profile_(nullptr)
...
profile_ = p
Evan Stade
2015/11/13 01:39:00
I guess that would be one way to make this more bu
Dan Beam
2015/11/16 19:57:25
ok
|
| NTPResourceCache::WindowType win_type = NTPResourceCache::GetWindowType( |
| - profile_, NULL); |
| + profile, NULL); |
| css_bytes_ = |
| NTPResourceCacheFactory::GetForProfile(profile)->GetNewTabCSS(win_type); |
| } |