diff options
author | justincohen@chromium.org <justincohen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-08 01:40:16 +0000 |
---|---|---|
committer | justincohen@chromium.org <justincohen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-08 01:40:16 +0000 |
commit | 2f08fa694064d2e1142f1fa16ae0b13111222c59 (patch) | |
tree | 259f7d92c912718668a9072fdd905b84de3e0828 | |
parent | 409d920b0fe471476b5278d65f3747254c829f0e (diff) | |
download | chromium_src-2f08fa694064d2e1142f1fa16ae0b13111222c59.zip chromium_src-2f08fa694064d2e1142f1fa16ae0b13111222c59.tar.gz chromium_src-2f08fa694064d2e1142f1fa16ae0b13111222c59.tar.bz2 |
Add constant for iOS Whats New promo.
Adds NotificationPromo::MOBILE_NTP_WHATS_NEW_PROMO.
BUG=None
TEST=None
Review URL: https://codereview.chromium.org/373823002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@281623 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/browser/web_resource/notification_promo.cc | 2 | ||||
-rw-r--r-- | chrome/browser/web_resource/notification_promo.h | 1 | ||||
-rw-r--r-- | chrome/browser/web_resource/promo_resource_service.cc | 3 |
3 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/web_resource/notification_promo.cc b/chrome/browser/web_resource/notification_promo.cc index d6972b9..0ddcdae 100644 --- a/chrome/browser/web_resource/notification_promo.cc +++ b/chrome/browser/web_resource/notification_promo.cc @@ -109,6 +109,8 @@ const PromoMapEntry kPromoMap[] = { { NotificationPromo::NTP_NOTIFICATION_PROMO, "ntp_notification_promo" }, { NotificationPromo::NTP_BUBBLE_PROMO, "ntp_bubble_promo" }, { NotificationPromo::MOBILE_NTP_SYNC_PROMO, "mobile_ntp_sync_promo" }, + { NotificationPromo::MOBILE_NTP_WHATS_NEW_PROMO, + "mobile_ntp_whats_new_promo" }, }; // Convert PromoType to appropriate string. diff --git a/chrome/browser/web_resource/notification_promo.h b/chrome/browser/web_resource/notification_promo.h index 9b3ee45..3355909 100644 --- a/chrome/browser/web_resource/notification_promo.h +++ b/chrome/browser/web_resource/notification_promo.h @@ -36,6 +36,7 @@ class NotificationPromo { NTP_NOTIFICATION_PROMO, NTP_BUBBLE_PROMO, MOBILE_NTP_SYNC_PROMO, + MOBILE_NTP_WHATS_NEW_PROMO, }; NotificationPromo(); diff --git a/chrome/browser/web_resource/promo_resource_service.cc b/chrome/browser/web_resource/promo_resource_service.cc index c8c7d28..3129e57 100644 --- a/chrome/browser/web_resource/promo_resource_service.cc +++ b/chrome/browser/web_resource/promo_resource_service.cc @@ -34,6 +34,9 @@ const int kTestCacheUpdateDelay = 3 * 60 * 1000; const NotificationPromo::PromoType kValidPromoTypes[] = { #if defined(OS_ANDROID) || defined(OS_IOS) NotificationPromo::MOBILE_NTP_SYNC_PROMO, +#if defined(OS_IOS) + NotificationPromo::MOBILE_NTP_WHATS_NEW_PROMO, +#endif // defined(OS_IOS) #else NotificationPromo::NTP_NOTIFICATION_PROMO, NotificationPromo::NTP_BUBBLE_PROMO, |