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

Unified Diff: components/translate/content/common/translate_messages.h

Issue 646543003: [components] Apply automatic range checks to content enum types across IPC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 | « no previous file | components/translate/core/common/translate_errors.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/translate/content/common/translate_messages.h
diff --git a/components/translate/content/common/translate_messages.h b/components/translate/content/common/translate_messages.h
index d8186118aa77b62a75686800893f2d9ae4f18b8a..f9a49db2f6c347aedda1a054bf938519d1a4bd93 100644
--- a/components/translate/content/common/translate_messages.h
+++ b/components/translate/content/common/translate_messages.h
@@ -12,7 +12,8 @@
#define IPC_MESSAGE_START TranslateMsgStart
-IPC_ENUM_TRAITS(translate::TranslateErrors::Type)
+IPC_ENUM_TRAITS_MAX_VALUE(translate::TranslateErrors::Type,
+ translate::TranslateErrors::TYPE_LAST)
IPC_STRUCT_TRAITS_BEGIN(translate::LanguageDetectionDetails)
IPC_STRUCT_TRAITS_MEMBER(time)
« no previous file with comments | « no previous file | components/translate/core/common/translate_errors.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698