| Index: chrome/browser/web_resource/promo_resource_service.cc
|
| diff --git a/chrome/browser/web_resource/promo_resource_service.cc b/chrome/browser/web_resource/promo_resource_service.cc
|
| index 3766e96b31ef8ccc063a3a4ab0f73eb903472424..509e83c9fa8fc87a15dc851db98c1b666735c883 100644
|
| --- a/chrome/browser/web_resource/promo_resource_service.cc
|
| +++ b/chrome/browser/web_resource/promo_resource_service.cc
|
| @@ -24,9 +24,9 @@ namespace {
|
| // Delay on first fetch so we don't interfere with startup.
|
| static const int kStartResourceFetchDelay = 5000;
|
|
|
| -// Delay between calls to update the cache (12h), and 10s in debug mode.
|
| +// Delay between calls to update the cache (12 hours), and 3 min in debug mode.
|
| static const int kCacheUpdateDelay = 12 * 60 * 60 * 1000;
|
| -static const int kTestCacheUpdateDelay = 10 * 1000;
|
| +static const int kTestCacheUpdateDelay = 3 * 60 * 1000;
|
|
|
| // The version of the service (used to expire the cache when upgrading Chrome
|
| // to versions with different types of promos).
|
| @@ -180,10 +180,10 @@ std::string PromoResourceService::GetPromoLocale() {
|
| void PromoResourceService::Unpack(const DictionaryValue& parsed_json) {
|
| NotificationPromo notification_promo(profile_);
|
| NotificationPromo::PromoType promo_type =
|
| -#if !defined(OS_ANDROID)
|
| - NotificationPromo::NTP_NOTIFICATION_PROMO;
|
| -#else
|
| +#if defined(OS_ANDROID) || defined(OS_IOS)
|
| NotificationPromo::MOBILE_NTP_SYNC_PROMO;
|
| +#else
|
| + NotificationPromo::NTP_NOTIFICATION_PROMO;
|
| #endif
|
| notification_promo.InitFromJson(parsed_json, promo_type);
|
|
|
|
|