| Index: chrome/browser/dom_ui/ntp_resource_cache.cc
|
| ===================================================================
|
| --- chrome/browser/dom_ui/ntp_resource_cache.cc (revision 33537)
|
| +++ chrome/browser/dom_ui/ntp_resource_cache.cc (working copy)
|
| @@ -143,6 +143,7 @@
|
| // Watch for pref changes that cause us to need to invalidate the HTML cache.
|
| PrefService* pref_service = profile_->GetPrefs();
|
| pref_service->AddPrefObserver(prefs::kShowBookmarkBar, this);
|
| + pref_service->AddPrefObserver(prefs::kHomePageIsNewTabPage, this);
|
| pref_service->AddPrefObserver(prefs::kNTPShownSections, this);
|
|
|
| // Watch for pref changes that cause us to need to invalidate the CSS cache.
|
| @@ -152,6 +153,7 @@
|
| NTPResourceCache::~NTPResourceCache() {
|
| PrefService* pref_service = profile_->GetPrefs();
|
| pref_service->RemovePrefObserver(prefs::kShowBookmarkBar, this);
|
| + pref_service->RemovePrefObserver(prefs::kHomePageIsNewTabPage, this);
|
| pref_service->RemovePrefObserver(prefs::kNTPShownSections, this);
|
|
|
| pref_service->RemovePrefObserver(prefs::kNTPPromoLineRemaining, this);
|
| @@ -357,6 +359,9 @@
|
| else
|
| localized_strings.SetString(L"syncispresent", "false");
|
|
|
| + if (!profile_->GetPrefs()->GetBoolean(prefs::kHomePageIsNewTabPage))
|
| + localized_strings.SetString(L"showsetashomepage", "true");
|
| +
|
| ChromeURLDataManager::DataSource::SetFontAndTextDirection(&localized_strings);
|
|
|
| // Control fade and resize animations.
|
|
|