| 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 5161f9b1e4423485da84a5fd7bde153a07f43bbc..99363e76c416dc538c16f738a33f5da8482e2da5 100644
|
| --- a/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc
|
| +++ b/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc
|
| @@ -182,17 +182,6 @@ NTPResourceCache::NTPResourceCache(Profile* profile)
|
| profile_pref_change_registrar_.Add(prefs::kSignInPromoShowNTPBubble,
|
| callback);
|
| profile_pref_change_registrar_.Add(prefs::kHideWebStoreIcon, callback);
|
| -
|
| - // Some tests don't have a local state.
|
| -#if defined(ENABLE_APP_LIST)
|
| - if (g_browser_process->local_state()) {
|
| - local_state_pref_change_registrar_.Init(g_browser_process->local_state());
|
| - local_state_pref_change_registrar_.Add(prefs::kShowAppLauncherPromo,
|
| - callback);
|
| - local_state_pref_change_registrar_.Add(
|
| - prefs::kAppLauncherHasBeenEnabled, callback);
|
| - }
|
| -#endif
|
| }
|
|
|
| NTPResourceCache::~NTPResourceCache() {}
|
| @@ -406,8 +395,6 @@ void NTPResourceCache::CreateNewTabHTML() {
|
| base::DictionaryValue load_time_data;
|
| load_time_data.SetBoolean("bookmarkbarattached",
|
| prefs->GetBoolean(bookmarks::prefs::kShowBookmarkBar));
|
| - load_time_data.SetBoolean("showAppLauncherPromo",
|
| - ShouldShowAppLauncherPromo());
|
| load_time_data.SetString("title",
|
| l10n_util::GetStringUTF16(IDS_NEW_TAB_TITLE));
|
| load_time_data.SetString("webStoreTitle",
|
| @@ -458,8 +445,6 @@ void NTPResourceCache::CreateNewTabHTML() {
|
| l10n_util::GetStringUTF16(IDS_NEW_TAB_PAGE_SWITCHER_CHANGE_TITLE));
|
| load_time_data.SetString("page_switcher_same_title",
|
| l10n_util::GetStringUTF16(IDS_NEW_TAB_PAGE_SWITCHER_SAME_TITLE));
|
| - load_time_data.SetString("appsPromoTitle",
|
| - l10n_util::GetStringUTF16(IDS_NEW_TAB_PAGE_APPS_PROMO_TITLE));
|
| // On Mac OS X 10.7+, horizontal scrolling can be treated as a back or
|
| // forward gesture. Pass through a flag that indicates whether or not that
|
| // feature is enabled.
|
|
|