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

Unified Diff: ui/arc/notification/arc_notification_item.cc

Issue 1618963006: Mojo C++ bindings: support enum validation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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: ui/arc/notification/arc_notification_item.cc
diff --git a/ui/arc/notification/arc_notification_item.cc b/ui/arc/notification/arc_notification_item.cc
index 694f41bdde7867f0f7218a3c1484f85e7bc4c4a8..5be5ac144fb4a99d18c08b5d2e74d46d849b1e26 100644
--- a/ui/arc/notification/arc_notification_item.cc
+++ b/ui/arc/notification/arc_notification_item.cc
@@ -122,8 +122,8 @@ void ArcNotificationItem::UpdateWithArcNotificationData(
data.progress_max * 100))));
break;
}
- DCHECK(ArcNotificationType_IsValidValue(data.type))
- << "Unsupported notification type: " << data.type;
+ DCHECK(IsKnownEnumValue(data.type)) << "Unsupported notification type: "
+ << data.type;
// The identifier of the notifier, which is used to distinguish the notifiers
// in the message center.

Powered by Google App Engine
This is Rietveld 408576698