Index: build/common.gypi |
diff --git a/build/common.gypi b/build/common.gypi |
index 93016e2db7d0aff8f5e361f3fcac5223486d14c2..08086dfd1cef1f6dfce585a213f2e62704e7d3bb 100644 |
--- a/build/common.gypi |
+++ b/build/common.gypi |
@@ -471,6 +471,10 @@ |
# |
# For more information on switching the CLD2 data source, see: |
# https://sites.google.com/a/chromium.org/dev/developers/how-tos/compact-language-detector-cld-data-source-configuration |
+ # |
+ # This string will be exposed in chrome://translate-internals under the |
+ # heading "CLD Data Source". This allows easy determination of which |
+ # data source the browser was built with. |
'cld2_data_source%': 'static', |
# Enable spell checker. |
@@ -2750,6 +2754,11 @@ |
['cld_version!=0', { |
'defines': ['CLD_VERSION=<(cld_version)'], |
}], |
+ ['cld_version==2', { |
+ # This is used to populate the "CLD Data Source" field in: |
+ # chrome://translate-internals |
+ 'defines': ['CLD2_DATA_SOURCE=<(cld2_data_source)'], |
+ }], |
['cld2_data_source=="static"', { |
'defines': ['CLD_DATA_FROM_STATIC'], |
}, { |