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

Unified Diff: content/common/gin_java_bridge_messages.h

Issue 603893002: Apply automatic range checks to content enum types across IPC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changes made as per comments Created 6 years, 3 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 | « content/common/android/gin_java_bridge_errors.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gin_java_bridge_messages.h
diff --git a/content/common/gin_java_bridge_messages.h b/content/common/gin_java_bridge_messages.h
index cbce41385438e33daf3e312d43d3b036d3a3fb9d..51f90e6ba17bc778728e209f35e2a0e0aa3d64ba 100644
--- a/content/common/gin_java_bridge_messages.h
+++ b/content/common/gin_java_bridge_messages.h
@@ -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.
« no previous file with comments | « content/common/android/gin_java_bridge_errors.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698