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

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

Issue 1127013008: Beginnings of synchronizing notifications in the notification database. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/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();
« no previous file with comments | « chrome/browser/notifications/notification_test_util.h ('k') | chrome/browser/notifications/notification_ui_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698