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

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 56908d85b8691880bd8035162cc15555a6b986cf..9d1ec98bcab4e38a910423306454ef54b603dc57 100644
--- a/chrome/browser/notifications/platform_notification_service_impl.cc
+++ b/chrome/browser/notifications/platform_notification_service_impl.cc
@@ -317,8 +317,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

Powered by Google App Engine
This is Rietveld 408576698