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

Unified Diff: chrome/browser/notifications/desktop_notification_service.cc

Issue 7464009: Removal of Profile from content part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: works now Created 9 years, 5 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/notifications/desktop_notification_service.cc
diff --git a/chrome/browser/notifications/desktop_notification_service.cc b/chrome/browser/notifications/desktop_notification_service.cc
index 29dff9dce5905938bbbe302eedfe010a450e6773..5bc8e80e8caef19ac325cf95e748605b09dc21f8 100644
--- a/chrome/browser/notifications/desktop_notification_service.cc
+++ b/chrome/browser/notifications/desktop_notification_service.cc
@@ -140,7 +140,7 @@ NotificationPermissionInfoBarDelegate::NotificationPermissionInfoBarDelegate(
: ConfirmInfoBarDelegate(contents),
origin_(origin),
display_name_(display_name),
- profile_(contents->profile()),
+ profile_(static_cast<Profile*>(contents->context())),
process_id_(process_id),
route_id_(route_id),
callback_context_(callback_context),

Powered by Google App Engine
This is Rietveld 408576698