Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7009)

Unified Diff: chrome/browser/web_resource/promo_resource_service.cc

Issue 10836099: Support for promo_type. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: review feedback Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/web_resource/promo_resource_service.cc
===================================================================
--- chrome/browser/web_resource/promo_resource_service.cc (revision 150023)
+++ chrome/browser/web_resource/promo_resource_service.cc (working copy)
@@ -179,7 +179,13 @@
void PromoResourceService::Unpack(const DictionaryValue& parsed_json) {
NotificationPromo notification_promo(profile_);
- notification_promo.InitFromJson(parsed_json);
+ NotificationPromo::PromoType promo_type =
+#if !defined(OS_ANDROID)
+ NotificationPromo::NTP_NOTIFICATION_PROMO;
+#else
+ NotificationPromo::MOBILE_NTP_SYNC_PROMO;
+#endif
+ notification_promo.InitFromJson(parsed_json, promo_type);
if (notification_promo.new_notification()) {
ScheduleNotification(notification_promo.StartTimeForGroup(),
« no previous file with comments | « chrome/browser/web_resource/notification_promo.cc ('k') | chrome/browser/web_resource/promo_resource_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698