Commit a5f553db authored by mohan.reddy's avatar mohan.reddy Committed by Commit bot

Apply automatic range checks to storage enum types across IPC in android_webview

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/605123003

Cr-Commit-Position: refs/heads/master@{#297375}
parent 5e4ae20f
......@@ -77,8 +77,12 @@ struct PrintHostMsg_RequestPrintPreview_Params {
#define IPC_MESSAGE_START PrintMsgStart
IPC_ENUM_TRAITS(printing::MarginType)
IPC_ENUM_TRAITS(blink::WebPrintScalingOption)
IPC_ENUM_TRAITS_MAX_VALUE(printing::MarginType,
printing::MarginType::MARGIN_TYPE_LAST)
IPC_ENUM_TRAITS_MAX_VALUE(
blink::WebPrintScalingOption,
blink::WebPrintScalingOption::WebPrintScalingOptionLast)
// Parameters for a render request.
IPC_STRUCT_TRAITS_BEGIN(PrintMsg_Print_Params)
......
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