Index: build/common.gypi |
diff --git a/build/common.gypi b/build/common.gypi |
index 6c8d55e870ad20c3351efeeb664434f7a26c99c2..8954ab43f93566315745efa7ce7ab727a15239da 100644 |
--- a/build/common.gypi |
+++ b/build/common.gypi |
@@ -126,6 +126,9 @@ |
# currently only works on Linux. |
'use_third_party_translations%': 0, |
+ # Enable the Manage Handlers section in the settings page. |
+ 'show_handler_settings%': 1, |
+ |
# Remoting compilation is enabled by default. Set to 0 to disable. |
'remoting%': 1, |
@@ -224,6 +227,7 @@ |
'remoting%': '<(remoting)', |
'p2p_apis%': '<(p2p_apis)', |
'clang_use_chrome_plugins%': '<(clang_use_chrome_plugins)', |
+ 'show_handler_settings%': '<(show_handler_settings)', |
# The release channel that this build targets. This is used to restrict |
# channel-specific build options, like which installer packages to create. |
@@ -571,7 +575,11 @@ |
'use_ibus%': 1, |
}, { |
'use_ibus%': 0, |
- }] |
+ }], |
+ |
+ ['show_handler_settings==1', { |
+ 'grit_defines': ['-D', 'show_handler_settings'], |
+ }], |
], |
}, |
'target_defaults': { |
@@ -752,6 +760,11 @@ |
'<(DEPTH)/third_party/wtl/include', |
], |
}], # OS==win |
+ ['show_handler_settings==1', { |
+ 'defines': [ |
+ 'SHOW_HANDLER_SETTINGS', |
+ ], |
+ }], |
], # conditions for 'target_defaults' |
'target_conditions': [ |
['chromium_code==0', { |