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

Unified Diff: chrome/browser/ui/webui/ntp/ntp_resource_cache.cc

Issue 7461160: ntp4 info bubble (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: even more docs Created 9 years, 4 months 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
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 330abd805cb7c87faeac71cd072b3064e3f68850..ce48fb8f9e0c909eb2ca97899702315386279794 100644
--- a/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc
+++ b/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc
@@ -179,6 +179,7 @@ NTPResourceCache::NTPResourceCache(Profile* profile) : profile_(profile) {
pref_change_registrar_.Add(prefs::kEnableBookmarkBar, this);
pref_change_registrar_.Add(prefs::kNTPShownSections, this);
pref_change_registrar_.Add(prefs::kNTPShownPage, this);
+ pref_change_registrar_.Add(prefs::kNTP4IntroDisplayCount, this);
}
NTPResourceCache::~NTPResourceCache() {}
@@ -224,7 +225,8 @@ void NTPResourceCache::Observe(int type,
*pref_name == prefs::kEnableBookmarkBar ||
*pref_name == prefs::kHomePageIsNewTabPage ||
*pref_name == prefs::kNTPShownSections ||
- *pref_name == prefs::kNTPShownPage) {
+ *pref_name == prefs::kNTPShownPage ||
+ *pref_name == prefs::kNTP4IntroDisplayCount) {
new_tab_incognito_html_ = NULL;
new_tab_html_ = NULL;
} else {

Powered by Google App Engine
This is Rietveld 408576698