Index: chrome/browser/web_resource/notification_promo_mobile_ntp.cc |
diff --git a/chrome/browser/web_resource/notification_promo_mobile_ntp.cc b/chrome/browser/web_resource/notification_promo_mobile_ntp.cc |
index 3676c815078c87497b030609cefdded5eadedc9b..a2ec383a1743ef1c24d2b0f09c658f98cde989c0 100644 |
--- a/chrome/browser/web_resource/notification_promo_mobile_ntp.cc |
+++ b/chrome/browser/web_resource/notification_promo_mobile_ntp.cc |
@@ -5,15 +5,14 @@ |
#include "chrome/browser/web_resource/notification_promo_mobile_ntp.h" |
#include "base/values.h" |
-#include "chrome/browser/profiles/profile.h" |
+#include "chrome/browser/prefs/pref_service_simple.h" |
#include "chrome/browser/web_resource/notification_promo.h" |
- |
-NotificationPromoMobileNtp::NotificationPromoMobileNtp(Profile* profile) |
+NotificationPromoMobileNtp::NotificationPromoMobileNtp(PrefServiceSimple* prefs) |
: valid_(false), |
action_args_(NULL), |
payload_(NULL), |
- notification_promo_(profile) { |
+ notification_promo_(prefs) { |
} |
NotificationPromoMobileNtp::~NotificationPromoMobileNtp() { |
@@ -55,7 +54,7 @@ bool NotificationPromoMobileNtp::InitFromNotificationPromo() { |
return false; |
} |
- // The rest of the fields is optional. |
+ // The rest of the fields are optional. |
valid_ = true; |
payload_->GetBoolean("promo_requires_mobile_only_sync", |
&requires_mobile_only_sync_); |