| Index: build/config/BUILD.gn
|
| diff --git a/build/config/BUILD.gn b/build/config/BUILD.gn
|
| index 7fbbd5d70efbd85c6c600cbb5e86c055e150a020..ecbef88c790ef5fe76e10a917cce264e50da34c6 100644
|
| --- a/build/config/BUILD.gn
|
| +++ b/build/config/BUILD.gn
|
| @@ -54,10 +54,17 @@ config("feature_flags") {
|
| if (enable_plugins) {
|
| defines += [ "ENABLE_PLUGINS=1" ]
|
| }
|
| - if (printing_mode > 0) {
|
| + if (enable_basic_printing || enable_print_preview) {
|
| + # Convenience define for ENABLE_BASIC_PRINTING || ENABLE_PRINT_PREVIEW.
|
| defines += [ "ENABLE_PRINTING=1" ]
|
| - if (printing_mode < 2) {
|
| - defines += [ "ENABLE_FULL_PRINTING=1" ]
|
| + if (enable_basic_printing) {
|
| + # Enable basic printing support and UI.
|
| + defines += [ "ENABLE_BASIC_PRINTING=1" ]
|
| + }
|
| + if (enable_print_preview) {
|
| + # Enable printing with print preview.
|
| + # Can be defined without ENABLE_BASIC_PRINTING.
|
| + defines += [ "ENABLE_PRINT_PREVIEW=1" ]
|
| }
|
| }
|
| if (enable_spellcheck) {
|
|
|