ToLanguageCode 33 components/language_usage_metrics/language_usage_metrics.cc const int language_code = ToLanguageCode(application_locale); ToLanguageCode 69 components/language_usage_metrics/language_usage_metrics.cc const int language_code = ToLanguageCode(locales.token()); ToLanguageCode 38 components/language_usage_metrics/language_usage_metrics.h static int ToLanguageCode(const std::string &locale); ToLanguageCode 85 components/language_usage_metrics/language_usage_metrics_unittest.cc TEST(LanguageUsageMetricsTest, ToLanguageCode) { ToLanguageCode 90 components/language_usage_metrics/language_usage_metrics_unittest.cc EXPECT_EQ(JAPANESE, LanguageUsageMetrics::ToLanguageCode("ja")); ToLanguageCode 93 components/language_usage_metrics/language_usage_metrics_unittest.cc EXPECT_EQ(SPANISH, LanguageUsageMetrics::ToLanguageCode("Es")); ToLanguageCode 96 components/language_usage_metrics/language_usage_metrics_unittest.cc EXPECT_EQ(JAPANESE, LanguageUsageMetrics::ToLanguageCode("ja-JP")); ToLanguageCode 99 components/language_usage_metrics/language_usage_metrics_unittest.cc EXPECT_EQ(0, LanguageUsageMetrics::ToLanguageCode(std::string())); ToLanguageCode 100 components/language_usage_metrics/language_usage_metrics_unittest.cc EXPECT_EQ(0, LanguageUsageMetrics::ToLanguageCode("1234")); ToLanguageCode 104 components/language_usage_metrics/language_usage_metrics_unittest.cc EXPECT_EQ(30840, LanguageUsageMetrics::ToLanguageCode("xx")); ToLanguageCode 68 components/translate/core/browser/translate_browser_metrics.cc language_usage_metrics::LanguageUsageMetrics::ToLanguageCode(locale)); ToLanguageCode 73 components/translate/core/browser/translate_browser_metrics.cc language_usage_metrics::LanguageUsageMetrics::ToLanguageCode(language); ToLanguageCode 80 components/translate/core/browser/translate_browser_metrics.cc language_usage_metrics::LanguageUsageMetrics::ToLanguageCode(language);