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

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: android x 4 Created 8 years 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..fdfc5da75acdcfa953e1d3541165080a437e26aa 100644
--- a/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc
+++ b/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc
@@ -429,10 +429,10 @@ 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::HandleClosed(g_browser_process->local_state(),
NotificationPromo::NTP_NOTIFICATION_PROMO);
} else {
- NotificationPromo notification_promo(profile_);
+ NotificationPromo notification_promo(g_browser_process->local_state());
notification_promo.InitFromPrefs(NotificationPromo::NTP_NOTIFICATION_PROMO);
if (notification_promo.CanShow()) {
load_time_data.SetString("notificationPromoText",
@@ -440,7 +440,7 @@ void NTPResourceCache::CreateNewTabHTML() {
DVLOG(1) << "Notification promo:" << notification_promo.promo_text();
}
- NotificationPromo bubble_promo(profile_);
+ NotificationPromo bubble_promo(g_browser_process->local_state());
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