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

Unified Diff: content/shell/browser/layout_test/layout_test_notification_manager.cc

Issue 2534443002: Use notification display service to collect persistent notifications. (Closed)
Patch Set: fix layout tests Created 4 years 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: content/shell/browser/layout_test/layout_test_notification_manager.cc
diff --git a/content/shell/browser/layout_test/layout_test_notification_manager.cc b/content/shell/browser/layout_test/layout_test_notification_manager.cc
index 590bfda5635d1fe83f6a52351a353186b48576e2..b9a28756eab65dff97f3054261a408d6cf008d0e 100644
--- a/content/shell/browser/layout_test/layout_test_notification_manager.cc
+++ b/content/shell/browser/layout_test/layout_test_notification_manager.cc
@@ -83,10 +83,9 @@ void LayoutTestNotificationManager::ClosePersistentNotification(
persistent_notifications_.erase(notification_id);
}
-bool LayoutTestNotificationManager::GetDisplayedPersistentNotifications(
+bool LayoutTestNotificationManager::GetDisplayedNotifications(
BrowserContext* browser_context,
std::set<std::string>* displayed_notifications) {
- DCHECK_CURRENTLY_ON(BrowserThread::UI);
Miguel Garcia 2016/12/06 12:01:18 Note that I have removed this restriction since we
DCHECK(displayed_notifications);
// Notifications will never outlive the lifetime of running layout tests.

Powered by Google App Engine
This is Rietveld 408576698