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

Unified Diff: chrome/common/render_messages.h

Issue 1065813003: Apply automatic range checks to enum types across IPC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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/instant_types.h ('k') | chrome/common/search_provider.h » ('j') | 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 e3f38656f0fe7840b122b827986e86c98180c2c8..c9218057d0217d1f6f6589c46b272a6c6046c699 100644
--- a/chrome/common/render_messages.h
+++ b/chrome/common/render_messages.h
@@ -80,11 +80,15 @@ IPC_ENUM_TRAITS_MAX_VALUE(OmniboxFocusChangeReason,
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)
-IPC_ENUM_TRAITS(ThemeBackgroundImageAlignment)
-IPC_ENUM_TRAITS(ThemeBackgroundImageTiling)
-IPC_ENUM_TRAITS(blink::WebConsoleMessage::Level)
-IPC_ENUM_TRAITS(content::TopControlsState)
+IPC_ENUM_TRAITS_MAX_VALUE(search_provider::InstallState,
+ search_provider::INSTALLED_STATE_LAST)
+IPC_ENUM_TRAITS_MAX_VALUE(ThemeBackgroundImageAlignment,
+ THEME_BKGRND_IMAGE_ALIGN_LAST)
+IPC_ENUM_TRAITS_MAX_VALUE(ThemeBackgroundImageTiling, THEME_BKGRND_IMAGE_LAST)
+IPC_ENUM_TRAITS_MAX_VALUE(blink::WebConsoleMessage::Level,
+ blink::WebConsoleMessage::LevelLast)
+IPC_ENUM_TRAITS_MAX_VALUE(content::TopControlsState,
+ content::TOP_CONTROLS_STATE_LAST)
// Output parameters for ChromeViewHostMsg_GetPluginInfo message.
IPC_STRUCT_BEGIN(ChromeViewHostMsg_GetPluginInfo_Output)
« no previous file with comments | « chrome/common/instant_types.h ('k') | chrome/common/search_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698