Commit 3cc3a684 authored by anujk.sharma's avatar anujk.sharma Committed by Commit bot

Apply automatic range checks to content 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/603893002

Cr-Commit-Position: refs/heads/master@{#296894}
parent 158f2845
......@@ -18,6 +18,7 @@ enum GinJavaBridgeError {
kGinJavaBridgeJavaExceptionRaised,
kGinJavaBridgeNonAssignableTypes,
kGinJavaBridgeRenderFrameDeleted,
kGinJavaBridgeErrorLast = kGinJavaBridgeRenderFrameDeleted
};
CONTENT_EXPORT const char* GinJavaBridgeErrorToString(GinJavaBridgeError error);
......
......@@ -17,7 +17,8 @@
// Messages for handling Java objects injected into JavaScript -----------------
IPC_ENUM_TRAITS(content::GinJavaBridgeError)
IPC_ENUM_TRAITS_MAX_VALUE(content::GinJavaBridgeError,
content::kGinJavaBridgeErrorLast)
// Sent from browser to renderer to add a Java object with the given name.
// Object IDs are generated on the browser side.
......
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