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

Unified Diff: chrome/browser/ui/cocoa/notifications/xpc_transaction_handler.mm

Issue 2737373004: Check that a transaction is opened before closing it (Closed)
Patch Set: Created 3 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/notifications/xpc_transaction_handler.mm
diff --git a/chrome/browser/ui/cocoa/notifications/xpc_transaction_handler.mm b/chrome/browser/ui/cocoa/notifications/xpc_transaction_handler.mm
index b1f6b1e73a27583903f8c84e27fac092870240f7..3304373a61f9c81117792201ff13fe4b90e7222e 100644
--- a/chrome/browser/ui/cocoa/notifications/xpc_transaction_handler.mm
+++ b/chrome/browser/ui/cocoa/notifications/xpc_transaction_handler.mm
@@ -35,7 +35,7 @@
NSUserNotificationCenter* notificationCenter =
[NSUserNotificationCenter defaultUserNotificationCenter];
NSUInteger showing = [[notificationCenter deliveredNotifications] count];
- if (showing == 0) {
+ if (showing == 0 && transactionOpen_) {
xpc_transaction_end();
transactionOpen_ = false;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698