Index: chrome/browser/notifications/notification_test_util.cc |
diff --git a/chrome/browser/notifications/notification_test_util.cc b/chrome/browser/notifications/notification_test_util.cc |
index 140d7275385621493e4515ecffea8e6ae40361dc..1cfdf9d5c04ae209b8493623dc32fc23cb23f29f 100644 |
--- a/chrome/browser/notifications/notification_test_util.cc |
+++ b/chrome/browser/notifications/notification_test_util.cc |
@@ -92,6 +92,16 @@ StubNotificationUIManager::GetAllIdsByProfileAndSourceOrigin( |
return delegate_ids; |
} |
+std::set<std::string> StubNotificationUIManager::GetAllIdsByProfile( |
+ Profile* profile) { |
+ std::set<std::string> delegate_ids; |
+ for (const auto& pair : notifications_) { |
+ if (pair.second == profile) |
+ delegate_ids.insert(pair.first.delegate_id()); |
+ } |
+ return delegate_ids; |
+} |
+ |
bool StubNotificationUIManager::CancelAllBySourceOrigin( |
const GURL& source_origin) { |
NOTIMPLEMENTED(); |