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

Unified Diff: build/common.gypi

Issue 397623002: Expose the CLD data source in chrome://translate-internals (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 | chrome/browser/component_updater/cld_component_installer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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'],
}, {
« no previous file with comments | « no previous file | chrome/browser/component_updater/cld_component_installer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698