| Index: chrome/browser/ui/webui/ntp/ntp_resource_cache.cc
|
| diff --git a/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc b/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc
|
| index 88cbb79741667c02d5c34b65de5a77b01a4b4346..fd42f52eb80a1240c4ca8ad5891a1c8e66e05aae 100644
|
| --- a/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc
|
| +++ b/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc
|
| @@ -25,7 +25,6 @@
|
| #include "chrome/browser/ui/webui/chrome_url_data_manager.h"
|
| #include "chrome/browser/ui/webui/ntp/new_tab_page_handler.h"
|
| #include "chrome/browser/ui/webui/ntp/new_tab_ui.h"
|
| -#include "chrome/browser/ui/webui/ntp/shown_sections_handler.h"
|
| #include "chrome/browser/ui/webui/sync_promo_ui.h"
|
| #include "chrome/browser/ui/webui/sync_setup_handler.h"
|
| #include "chrome/browser/web_resource/promo_resource_service.h"
|
| @@ -181,7 +180,6 @@ NTPResourceCache::NTPResourceCache(Profile* profile) : profile_(profile) {
|
| pref_change_registrar_.Add(prefs::kSyncAcknowledgedSyncTypes, this);
|
| pref_change_registrar_.Add(prefs::kShowBookmarkBar, this);
|
| pref_change_registrar_.Add(prefs::kHomePageIsNewTabPage, this);
|
| - pref_change_registrar_.Add(prefs::kNTPShownSections, this);
|
| pref_change_registrar_.Add(prefs::kNTPShownPage, this);
|
| }
|
|
|
| @@ -400,11 +398,6 @@ void NTPResourceCache::CreateNewTabHTML() {
|
| localized_strings.SetString("themegravity",
|
| (alignment & ThemeService::ALIGN_RIGHT) ? "right" : "");
|
|
|
| - // Pass the shown_sections pref early so that we can prevent flicker.
|
| - const int shown_sections = ShownSectionsHandler::GetShownSections(
|
| - profile_->GetPrefs());
|
| - localized_strings.SetInteger("shown_sections", shown_sections);
|
| -
|
| // If the user has preferences for a start and end time for a custom logo,
|
| // and the time now is between these two times, show the custom logo.
|
| if (profile_->GetPrefs()->FindPreference(prefs::kNTPCustomLogoStart) &&
|
|
|