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

Unified Diff: content/shell/renderer/test_runner/notification_presenter.cc

Issue 184313005: Clean up the TestRunner methods exposed for Web Notifications. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 9 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
« no previous file with comments | « content/shell/renderer/test_runner/notification_presenter.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/renderer/test_runner/notification_presenter.cc
diff --git a/content/shell/renderer/test_runner/notification_presenter.cc b/content/shell/renderer/test_runner/notification_presenter.cc
index 80e6d5224ba4e0a77dd75447ebbbbc88ba49f277..98c5aea8d6330597cfb843357f111e970fd029b4 100644
--- a/content/shell/renderer/test_runner/notification_presenter.cc
+++ b/content/shell/renderer/test_runner/notification_presenter.cc
@@ -55,15 +55,12 @@ bool NotificationPresenter::SimulateClick(const std::string& title) {
return true;
}
-void NotificationPresenter::CancelAllActiveNotifications() {
+void NotificationPresenter::Reset() {
while (!active_notifications_.empty()) {
const WebNotification& notification = active_notifications_.begin()->second;
cancel(notification);
}
-}
-void NotificationPresenter::Reset() {
- CancelAllActiveNotifications();
known_origins_.clear();
replacements_.clear();
}
« no previous file with comments | « content/shell/renderer/test_runner/notification_presenter.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698