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

Unified Diff: chrome/browser/ui/webui/ntp/ntp_resource_cache.cc

Issue 11689004: Move PromoResourceService from Profile to BrowserProcessImpl/local_state(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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/ui/webui/ntp/ntp_resource_cache.cc
diff --git a/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc b/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc
index 9cc6f37725698541fc2025128493eb591458bae2..bfff84210d23e0c722deb01048dbb1e251e9da77 100644
--- a/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc
+++ b/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc
@@ -429,10 +429,9 @@ void NTPResourceCache::CreateNewTabHTML() {
// Disable the promo if this is the first run, otherwise set the promo string
// for display if there is a valid outstanding promo.
if (first_run::IsChromeFirstRun()) {
- NotificationPromo::HandleClosed(profile_,
- NotificationPromo::NTP_NOTIFICATION_PROMO);
+ NotificationPromo::HandleClosed(NotificationPromo::NTP_NOTIFICATION_PROMO);
} else {
- NotificationPromo notification_promo(profile_);
+ NotificationPromo notification_promo;
notification_promo.InitFromPrefs(NotificationPromo::NTP_NOTIFICATION_PROMO);
if (notification_promo.CanShow()) {
load_time_data.SetString("notificationPromoText",
@@ -440,7 +439,7 @@ void NTPResourceCache::CreateNewTabHTML() {
DVLOG(1) << "Notification promo:" << notification_promo.promo_text();
}
- NotificationPromo bubble_promo(profile_);
+ NotificationPromo bubble_promo;
bubble_promo.InitFromPrefs(NotificationPromo::NTP_BUBBLE_PROMO);
if (bubble_promo.CanShow()) {
load_time_data.SetString("bubblePromoText",

Powered by Google App Engine
This is Rietveld 408576698