From https://cs.chromium.org/chromium/src/components/language_usage_metrics/language_usage_metrics.h?rcl=1464823126&l=31
// Parses |locale| and returns the language code. Returns 0 in case of errors.
// The language code is calculated from two alphabets. For example, if
// |locale| is 'en' which represents 'English', the codes of 'e' and 'n' are
// 101 and 110 respectively, and the language code will be 101 * 256 + 100 =
// 25966.
// |locale| should consist of only lower-case letters. This function doesn't
// check whether |locale| is valid locale or not strictly.
static int ToLanguageCode(const std::string &locale);
One of Chrome's UI language has 3-letter code ('fil' : Filipino)
The above code would conflate 'fi' (Finnish) with 'fil' (Filipino) unless 'fil' is mapped to its 'legacy' code ('ta') before being fed to the above fucntion.
As a result, 'fil'(Filipino) would not be counted at all.
Comment 1 by cbiesin...@chromium.org
, Jul 14 2016