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

Unified Diff: chrome/browser/sync/sync_error_notifier_ash.h

Issue 2772783004: [Sync] Don't display passphrase notification if user dismissed previous one (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
Index: chrome/browser/sync/sync_error_notifier_ash.h
diff --git a/chrome/browser/sync/sync_error_notifier_ash.h b/chrome/browser/sync/sync_error_notifier_ash.h
index 4dcc8d29b80600b944746da672a4797dec065a7f..4d572fd6892bd003be61a3a0770a50e9d1bfda30 100644
--- a/chrome/browser/sync/sync_error_notifier_ash.h
+++ b/chrome/browser/sync/sync_error_notifier_ash.h
@@ -35,6 +35,11 @@ class SyncErrorNotifier : public syncer::SyncErrorController::Observer,
// The Profile this service belongs to.
Profile* profile_;
+ // Notification was added to NotificationUIManager. This flag is used to
+ // prevent displaying passphrase notification to user if they already saw (and
+ // potentially dismissed) previous one.
+ bool notification_displayed_;
+
// Used to keep track of the message center notification.
std::string notification_id_;
« no previous file with comments | « no previous file | chrome/browser/sync/sync_error_notifier_ash.cc » ('j') | chrome/browser/sync/sync_error_notifier_ash_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698