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

Unified Diff: chrome/browser/notifications/sync_notifier/chrome_notifier_delegate.cc

Issue 12717010: Widen Data Pipes and newer protobufs (Closed) Base URL: http://git.chromium.org/chromium/src.git@newProtobufs
Patch Set: Synced Notifications newer protobufs - improve unit test robustness Created 7 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
Index: chrome/browser/notifications/sync_notifier/chrome_notifier_delegate.cc
diff --git a/chrome/browser/notifications/sync_notifier/chrome_notifier_delegate.cc b/chrome/browser/notifications/sync_notifier/chrome_notifier_delegate.cc
index 1348d170dfd4a50a717953e1b5492753d9c783d9..f61714e127eed194e970852b72580b15b3f6cc00 100644
--- a/chrome/browser/notifications/sync_notifier/chrome_notifier_delegate.cc
+++ b/chrome/browser/notifications/sync_notifier/chrome_notifier_delegate.cc
@@ -22,7 +22,8 @@ content::RenderViewHost* ChromeNotifierDelegate::GetRenderViewHost() const {
}
void ChromeNotifierDelegate::Close(bool by_user) {
- chrome_notifier_->MarkNotificationAsDismissed(id_);
+ if (by_user)
+ chrome_notifier_->MarkNotificationAsDismissed(id_);
}
} // namespace notifier

Powered by Google App Engine
This is Rietveld 408576698