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

Unified Diff: chrome/browser/notifications/message_center_notification_manager.h

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/message_center_notification_manager.h
diff --git a/chrome/browser/notifications/message_center_notification_manager.h b/chrome/browser/notifications/message_center_notification_manager.h
index a5a2149c89154d23ec5806f8f9104b5167649cea..64fc7c8e40911031e273dc7caafddf84bfd11eb0 100644
--- a/chrome/browser/notifications/message_center_notification_manager.h
+++ b/chrome/browser/notifications/message_center_notification_manager.h
@@ -59,9 +59,9 @@ class MessageCenterNotificationManager
bool CancelById(const std::string& delegate_id,
ProfileID profile_id) override;
std::set<std::string> GetAllIdsByProfileAndSourceOrigin(
- Profile* profile,
+ ProfileID profile_id,
const GURL& source) override;
- std::set<std::string> GetAllIdsByProfile(Profile* profile) override;
+ std::set<std::string> GetAllIdsByProfile(ProfileID profile_id) override;
bool CancelAllBySourceOrigin(const GURL& source_origin) override;
bool CancelAllByProfile(ProfileID profile_id) override;
void CancelAll() override;
@@ -96,7 +96,8 @@ class MessageCenterNotificationManager
private:
// Adds |profile_notification| to an alternative provider extension or app.
void AddNotificationToAlternateProvider(
- ProfileNotification* profile_notification,
+ const Notification& notification,
+ Profile* profile,
const std::string& extension_id) const;
FRIEND_TEST_ALL_PREFIXES(message_center::WebNotificationTrayTest,

Powered by Google App Engine
This is Rietveld 408576698