Index: chrome/browser/engagement/important_sites_util.cc |
diff --git a/chrome/browser/engagement/important_sites_util.cc b/chrome/browser/engagement/important_sites_util.cc |
index c266bd0d0265ce97ac68f5490e82d6f8a191f4d3..da6d7e6cf6425493a251d5af6fe1eeeb9e8b71d6 100644 |
--- a/chrome/browser/engagement/important_sites_util.cc |
+++ b/chrome/browser/engagement/important_sites_util.cc |
@@ -350,6 +350,10 @@ void PopulateInfoMapWithHomeScreen( |
} // namespace |
+bool ImportantSitesUtil::HasNotifications(const ImportantDomainInfo& info) { |
+ return (info.reason_bitfield & (1 << ImportantReason::NOTIFICATIONS)) != 0; |
+} |
+ |
bool ImportantSitesUtil::IsDialogDisabled(Profile* profile) { |
PrefService* service = profile->GetPrefs(); |
DictionaryPrefUpdate update(service, prefs::kImportantSitesDialogHistory); |