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

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

Issue 217203003: Update to latest protobufs to match the server side. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updated protobufs: Fix unit tests, add missing fields. 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
Index: chrome/browser/notifications/sync_notifier/synced_notification.cc
diff --git a/chrome/browser/notifications/sync_notifier/synced_notification.cc b/chrome/browser/notifications/sync_notifier/synced_notification.cc
index a7425630b9797cc3ae29dcf1a74d795e1dbb5939..69224f715e6ffdf9f3bd64ce4c4fc0ec2966a206 100644
--- a/chrome/browser/notifications/sync_notifier/synced_notification.cc
+++ b/chrome/browser/notifications/sync_notifier/synced_notification.cc
@@ -505,10 +505,10 @@ int SyncedNotification::GetPriority() const {
// Convert the prioroty to the scheme used by the notification center.
if (protobuf_priority ==
- sync_pb::CoalescedSyncedNotification_Priority_LOW) {
+ sync_pb::CoalescedSyncedNotification_Priority_INVISIBLE) {
return message_center::LOW_PRIORITY;
} else if (protobuf_priority ==
- sync_pb::CoalescedSyncedNotification_Priority_STANDARD) {
+ sync_pb::CoalescedSyncedNotification_Priority_LOW) {
return message_center::DEFAULT_PRIORITY;
} else if (protobuf_priority ==
sync_pb::CoalescedSyncedNotification_Priority_HIGH) {
@@ -516,7 +516,7 @@ int SyncedNotification::GetPriority() const {
} else {
// Complain if this is a new priority we have not seen before.
DCHECK(protobuf_priority <
- sync_pb::CoalescedSyncedNotification_Priority_LOW ||
+ sync_pb::CoalescedSyncedNotification_Priority_INVISIBLE ||
sync_pb::CoalescedSyncedNotification_Priority_HIGH <
protobuf_priority);
return kUndefinedPriority;

Powered by Google App Engine
This is Rietveld 408576698