summaryrefslogtreecommitdiffstats
path: root/tools/metrics
diff options
context:
space:
mode:
authortoyoshim@chromium.org <toyoshim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-05 17:02:41 +0000
committertoyoshim@chromium.org <toyoshim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-05 17:02:41 +0000
commitf87d61f948a92935a0a636b61011a171c22bb38e (patch)
treea234db94d30df28605e47bb3393eb50afe1b2e16 /tools/metrics
parenta7116a0a8fc31c3d4c297fb1587879565096a0a6 (diff)
downloadchromium_src-f87d61f948a92935a0a636b61011a171c22bb38e.zip
chromium_src-f87d61f948a92935a0a636b61011a171c22bb38e.tar.gz
chromium_src-f87d61f948a92935a0a636b61011a171c22bb38e.tar.bz2
Translate: CLD should not disagree similar languages
Currently, infobar doesn't appear if a page providing language meta information is different from a CLD determined language. But, some language pairs are difficult for CLD to distinguish correctly. This change make CLD not disagree on these similar languages. BUG=243763 TEST=unit_tests --gtest_filter='TranslateHelper*Test.*' Review URL: https://chromiumcodereview.appspot.com/16107005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204280 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/metrics')
-rw-r--r--tools/metrics/histograms/histograms.xml16
1 files changed, 16 insertions, 0 deletions
diff --git a/tools/metrics/histograms/histograms.xml b/tools/metrics/histograms/histograms.xml
index 65479db..af84661 100644
--- a/tools/metrics/histograms/histograms.xml
+++ b/tools/metrics/histograms/histograms.xml
@@ -9748,6 +9748,17 @@ other types of suffix sets.
</summary>
</histogram>
+<histogram name="Translate.SimilarLanguageMatch" enum="BooleanMatched">
+ <summary>
+ This metrics is logged whenever a page is loaded. The logged value is
+ &quot;Mathced&quot; when the CLD-detected language differs from the page
+ language code , and the two languages are such similar languages. In that
+ case, Chrome ignore the CLD-determined language and instead uses the page
+ language code. The page language code is decided by Content-Language and
+ HTML lang attribute.
+ </summary>
+</histogram>
+
<histogram name="Translate.TimeToBeReady" units="milliseconds">
<summary>
The time from injecting scripts for Chrome Translate to being ready to
@@ -10733,6 +10744,11 @@ other types of suffix sets.
<int value="1" label="HTTPS"/>
</enum>
+<enum name="BooleanMatched" type="int">
+ <int value="0" label="Not matched"/>
+ <int value="1" label="Matched"/>
+</enum>
+
<enum name="BooleanOrphan" type="int">
<int value="0" label="Non-orphan"/>
<int value="1" label="Orphan"/>