| Index: chrome/browser/web_resource/promo_resource_service.cc
|
| ===================================================================
|
| --- chrome/browser/web_resource/promo_resource_service.cc (revision 111558)
|
| +++ chrome/browser/web_resource/promo_resource_service.cc (working copy)
|
| @@ -157,7 +157,7 @@
|
| UnpackNTPSignInPromoSignal(parsed_json);
|
| }
|
|
|
| -void PromoResourceService::OnNewNotification(double start, double end) {
|
| +void PromoResourceService::OnNotificationParsed(double start, double end) {
|
| ScheduleNotification(start, end);
|
| }
|
|
|
| @@ -215,14 +215,16 @@
|
|
|
| void PromoResourceService::UnpackNotificationSignal(
|
| const DictionaryValue& parsed_json) {
|
| - NotificationPromo notification_promo(prefs_, this);
|
| - notification_promo.InitFromJson(parsed_json);
|
| + scoped_refptr<NotificationPromo> notification_promo =
|
| + NotificationPromo::Factory(profile_, this);
|
| + notification_promo->InitFromJson(parsed_json, false);
|
| }
|
|
|
| bool PromoResourceService::CanShowNotificationPromo(Profile* profile) {
|
| - NotificationPromo notification_promo(profile->GetPrefs(), NULL);
|
| - notification_promo.InitFromPrefs();
|
| - return notification_promo.CanShow();
|
| + scoped_refptr<NotificationPromo> notification_promo =
|
| + NotificationPromo::Factory(profile, NULL);
|
| + notification_promo->InitFromPrefs();
|
| + return notification_promo->CanShow();
|
| }
|
|
|
| void PromoResourceService::UnpackWebStoreSignal(
|
|
|