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

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

Issue 11689004: Move PromoResourceService from Profile to BrowserProcessImpl/local_state(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nits Created 7 years, 12 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/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..e8956d1cb4e9e6daeb3d029ba726e87ee1a48df4 100644
--- a/chrome/browser/web_resource/notification_promo_mobile_ntp.cc
+++ b/chrome/browser/web_resource/notification_promo_mobile_ntp.cc
@@ -5,15 +5,12 @@
#include "chrome/browser/web_resource/notification_promo_mobile_ntp.h"
#include "base/values.h"
-#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/web_resource/notification_promo.h"
-
-NotificationPromoMobileNtp::NotificationPromoMobileNtp(Profile* profile)
+NotificationPromoMobileNtp::NotificationPromoMobileNtp()
: valid_(false),
action_args_(NULL),
- payload_(NULL),
- notification_promo_(profile) {
+ payload_(NULL) {
}
NotificationPromoMobileNtp::~NotificationPromoMobileNtp() {
@@ -55,7 +52,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_);

Powered by Google App Engine
This is Rietveld 408576698