Commit bca743c6 authored by anujk.sharma's avatar anujk.sharma Committed by Commit bot

Apply automatic range checks to /chrome enum types across IPC.

This is part of a long-running background task to remove the remaining
uses of the unchecked IPC_ENUM_TRAITS() macro.

BUG=246708

Review URL: https://codereview.chromium.org/598393002

Cr-Commit-Position: refs/heads/master@{#297135}
parent 3d756885
...@@ -84,7 +84,8 @@ IPC_ENUM_TRAITS_MAX_VALUE(ChromeViewHostMsg_GetPluginInfo_Status::Value, ...@@ -84,7 +84,8 @@ IPC_ENUM_TRAITS_MAX_VALUE(ChromeViewHostMsg_GetPluginInfo_Status::Value,
ChromeViewHostMsg_GetPluginInfo_Status::kUnauthorized) ChromeViewHostMsg_GetPluginInfo_Status::kUnauthorized)
IPC_ENUM_TRAITS(OmniboxFocusChangeReason) IPC_ENUM_TRAITS(OmniboxFocusChangeReason)
IPC_ENUM_TRAITS(OmniboxFocusState) IPC_ENUM_TRAITS(OmniboxFocusState)
IPC_ENUM_TRAITS(search_provider::OSDDType) IPC_ENUM_TRAITS_MAX_VALUE(search_provider::OSDDType,
search_provider::OSDD_TYPE_LAST)
IPC_ENUM_TRAITS(search_provider::InstallState) IPC_ENUM_TRAITS(search_provider::InstallState)
IPC_ENUM_TRAITS(ThemeBackgroundImageAlignment) IPC_ENUM_TRAITS(ThemeBackgroundImageAlignment)
IPC_ENUM_TRAITS(ThemeBackgroundImageTiling) IPC_ENUM_TRAITS(ThemeBackgroundImageTiling)
......
...@@ -14,6 +14,7 @@ enum OSDDType { ...@@ -14,6 +14,7 @@ enum OSDDType {
// The Open Search Description URL was given by Javascript. // The Open Search Description URL was given by Javascript.
EXPLICIT_PROVIDER, EXPLICIT_PROVIDER,
OSDD_TYPE_LAST = EXPLICIT_PROVIDER
}; };
// The install state of the search provider (not installed, installed, default). // The install state of the search provider (not installed, installed, default).
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment