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

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

Issue 1155453002: Passing ProfileID instead of Profile* to clarify that profile should not be used for making any cal… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changes as per review comments. Created 5 years, 7 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/platform_notification_service_impl.cc
diff --git a/chrome/browser/notifications/platform_notification_service_impl.cc b/chrome/browser/notifications/platform_notification_service_impl.cc
index be6db4c970444e312fc2fded2c7fd7479c78499d..cafd270ced855216c3d609f543e6e1052110780a 100644
--- a/chrome/browser/notifications/platform_notification_service_impl.cc
+++ b/chrome/browser/notifications/platform_notification_service_impl.cc
@@ -320,8 +320,8 @@ bool PlatformNotificationServiceImpl::GetDisplayedPersistentNotifications(
return false; // Tests will not have a message center.
// TODO(peter): Filter for persistent notifications only.
- *displayed_notifications =
- GetNotificationUIManager()->GetAllIdsByProfile(profile);
+ *displayed_notifications = GetNotificationUIManager()->GetAllIdsByProfile(
+ NotificationUIManager::GetProfileID(profile));
return true;
#else
« no previous file with comments | « chrome/browser/notifications/notification_ui_manager_android.cc ('k') | chrome/browser/notifications/profile_notification.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698