| Index: components/printing/renderer/print_web_view_helper.cc
|
| diff --git a/components/printing/renderer/print_web_view_helper.cc b/components/printing/renderer/print_web_view_helper.cc
|
| index 6a8f1c3211884a9adea20b57ce6497c5bf8c4968..991105448bb6ac3bea46a6f7a63c1dbbd3bd738a 100644
|
| --- a/components/printing/renderer/print_web_view_helper.cc
|
| +++ b/components/printing/renderer/print_web_view_helper.cc
|
| @@ -58,16 +58,15 @@ namespace printing {
|
|
|
| namespace {
|
|
|
| -#define STATIC_ASSERT_PP_MATCHING_ENUM(a, b) \
|
| - static_assert(static_cast<int>(a) == static_cast<int>(b), \
|
| - "mismatching enums: " #a)
|
| -
|
| -// Check blink::WebDuplexMode and printing::DuplexMode are kept in sync.
|
| -STATIC_ASSERT_PP_MATCHING_ENUM(blink::WebUnknownDuplexMode,
|
| - UNKNOWN_DUPLEX_MODE);
|
| -STATIC_ASSERT_PP_MATCHING_ENUM(blink::WebSimplex, SIMPLEX);
|
| -STATIC_ASSERT_PP_MATCHING_ENUM(blink::WebLongEdge, LONG_EDGE);
|
| -STATIC_ASSERT_PP_MATCHING_ENUM(blink::WebShortEdge, SHORT_EDGE);
|
| +#define STATIC_ASSERT_ENUM(a, b) \
|
| + static_assert(static_cast<int>(a) == static_cast<int>(b), \
|
| + "mismatching enums: " #a)
|
| +
|
| +// Check blink and printing enums are kept in sync.
|
| +STATIC_ASSERT_ENUM(blink::WebUnknownDuplexMode, UNKNOWN_DUPLEX_MODE);
|
| +STATIC_ASSERT_ENUM(blink::WebSimplex, SIMPLEX);
|
| +STATIC_ASSERT_ENUM(blink::WebLongEdge, LONG_EDGE);
|
| +STATIC_ASSERT_ENUM(blink::WebShortEdge, SHORT_EDGE);
|
|
|
| enum PrintPreviewHelperEvents {
|
| PREVIEW_EVENT_REQUESTED,
|
|
|