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

Unified Diff: android_webview/common/print_messages.h

Issue 605123003: Apply automatic range checks to storage enum types across IPC in android_webview (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Resolving typo issue 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/common/print_messages.h
diff --git a/android_webview/common/print_messages.h b/android_webview/common/print_messages.h
index 76fc904e864118a9dcd42dbb4724919501f53f77..90650d1b153197ba1e49812d9604ec4069f31991 100644
--- a/android_webview/common/print_messages.h
+++ b/android_webview/common/print_messages.h
@@ -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)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698