Commit 23ba6618 authored by anujk.sharma's avatar anujk.sharma Committed by Commit bot

Apply automatic range checks to storage 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/603673003

Cr-Commit-Position: refs/heads/master@{#296887}
parent c350c3cd
...@@ -29,7 +29,7 @@ IPC_STRUCT_TRAITS_BEGIN(storage::FileSystemInfo) ...@@ -29,7 +29,7 @@ IPC_STRUCT_TRAITS_BEGIN(storage::FileSystemInfo)
IPC_STRUCT_TRAITS_END() IPC_STRUCT_TRAITS_END()
IPC_ENUM_TRAITS(storage::FileSystemType) IPC_ENUM_TRAITS(storage::FileSystemType)
IPC_ENUM_TRAITS(storage::QuotaLimitType) IPC_ENUM_TRAITS_MAX_VALUE(storage::QuotaLimitType, storage::kQuotaLimitTypeLast)
// File system messages sent from the browser to the child process. // File system messages sent from the browser to the child process.
......
...@@ -22,6 +22,7 @@ enum QuotaLimitType { ...@@ -22,6 +22,7 @@ enum QuotaLimitType {
kQuotaLimitTypeUnknown, kQuotaLimitTypeUnknown,
kQuotaLimitTypeLimited, kQuotaLimitTypeLimited,
kQuotaLimitTypeUnlimited, kQuotaLimitTypeUnlimited,
kQuotaLimitTypeLast = kQuotaLimitTypeUnlimited
}; };
} // namespace storage } // namespace storage
......
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