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

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
« no previous file with comments | « mojo/public/tools/bindings/pylib/mojom/generate/module.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 48d3868857a504464c5a1314d9b62be854e2be6c..e13e4556af374bb643fc80a86786a9b761ab9f7d 100644
--- a/ui/arc/notification/arc_notification_item.cc
+++ b/ui/arc/notification/arc_notification_item.cc
@@ -127,8 +127,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;
for (size_t i = 0; i < data.buttons.size(); i++) {
rich_data.buttons.push_back(message_center::ButtonInfo(
« no previous file with comments | « mojo/public/tools/bindings/pylib/mojom/generate/module.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698