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

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

Issue 7799008: Fix crash on NTP related to multi-profile extensions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix sources for incognito Created 9 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
diff --git a/chrome/browser/web_resource/promo_resource_service.cc b/chrome/browser/web_resource/promo_resource_service.cc
index d04c60472c1015358a4eb85aa20e713fd517a321..09b0aee48784886e7b45ad9a3182c98a054dc5d2 100644
--- a/chrome/browser/web_resource/promo_resource_service.cc
+++ b/chrome/browser/web_resource/promo_resource_service.cc
@@ -132,6 +132,7 @@ PromoResourceService::PromoResourceService(Profile* profile)
prefs::kNTPPromoResourceCacheUpdate,
kStartResourceFetchDelay,
kCacheUpdateDelay),
+ profile_(profile),
web_resource_cache_(NULL),
channel_(chrome::VersionInfo::CHANNEL_UNKNOWN) {
Init();
@@ -393,7 +394,7 @@ void PromoResourceService::UnpackWebStoreSignal(
NotificationService::current()->Notify(
chrome::NOTIFICATION_WEB_STORE_PROMO_LOADED,
- Source<PromoResourceService>(this),
+ Source<Profile>(profile_),
NotificationService::NoDetails());
return;
« chrome/browser/ui/browser.cc ('K') | « chrome/browser/web_resource/promo_resource_service.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698