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

Unified Diff: chrome/common/render_messages.h

Issue 638013002: 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 | « chrome/common/omnibox_focus_state.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/render_messages.h
diff --git a/chrome/common/render_messages.h b/chrome/common/render_messages.h
index 550c29d31828cd2c442438ced18970d9aa9d2e61..3583f896ed00b2467c8f5f337ece20deb69a2221 100644
--- a/chrome/common/render_messages.h
+++ b/chrome/common/render_messages.h
@@ -82,8 +82,9 @@ struct ParamTraits<ContentSettingsPattern> {
IPC_ENUM_TRAITS_MAX_VALUE(ChromeViewHostMsg_GetPluginInfo_Status::Value,
ChromeViewHostMsg_GetPluginInfo_Status::kUnauthorized)
-IPC_ENUM_TRAITS(OmniboxFocusChangeReason)
-IPC_ENUM_TRAITS(OmniboxFocusState)
+IPC_ENUM_TRAITS_MAX_VALUE(OmniboxFocusChangeReason,
+ OMNIBOX_FOCUS_CHANGE_REASON_LAST)
+IPC_ENUM_TRAITS_MAX_VALUE(OmniboxFocusState, OMNIBOX_FOCUS_STATE_LAST)
IPC_ENUM_TRAITS_MAX_VALUE(search_provider::OSDDType,
search_provider::OSDD_TYPE_LAST)
IPC_ENUM_TRAITS(search_provider::InstallState)
« no previous file with comments | « chrome/common/omnibox_focus_state.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698