Index: chrome/browser/ui/webui/ntp/new_tab_page_handler.cc |
=================================================================== |
--- chrome/browser/ui/webui/ntp/new_tab_page_handler.cc (revision 150023) |
+++ chrome/browser/ui/webui/ntp/new_tab_page_handler.cc (working copy) |
@@ -63,15 +63,16 @@ |
} |
void NewTabPageHandler::HandleCloseNotificationPromo(const ListValue* args) { |
- NotificationPromo notification_promo(Profile::FromWebUI(web_ui())); |
- notification_promo.HandleClosed(); |
+ NotificationPromo::HandleClosed(Profile::FromWebUI(web_ui()), |
+ NotificationPromo::NTP_NOTIFICATION_PROMO); |
Notify(chrome::NOTIFICATION_PROMO_RESOURCE_STATE_CHANGED); |
} |
void NewTabPageHandler::HandleNotificationPromoViewed(const ListValue* args) { |
- NotificationPromo notification_promo(Profile::FromWebUI(web_ui())); |
- if (notification_promo.HandleViewed()) |
+ if (NotificationPromo::HandleViewed(Profile::FromWebUI(web_ui()), |
+ NotificationPromo::NTP_NOTIFICATION_PROMO)) { |
Notify(chrome::NOTIFICATION_PROMO_RESOURCE_STATE_CHANGED); |
+ } |
} |
void NewTabPageHandler::HandlePageSelected(const ListValue* args) { |