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

Side by Side Diff: tools/metrics/histograms/histograms.xml

Issue 15728002: Translate: adopt html lang attribute if valid value is provided (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix WindowOpenClose crash Created 7 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/renderer/translate/translate_helper_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!-- 1 <!--
2 Copyright 2013 The Chromium Authors. All rights reserved. 2 Copyright 2013 The Chromium Authors. All rights reserved.
3 Use of this source code is governed by a BSD-style license that can be 3 Use of this source code is governed by a BSD-style license that can be
4 found in the LICENSE file. 4 found in the LICENSE file.
5 --> 5 -->
6 6
7 <!-- 7 <!--
8 This file is used to generate a comprehensive list of Chrome histograms along 8 This file is used to generate a comprehensive list of Chrome histograms along
9 with a detailed description for each histogram. 9 with a detailed description for each histogram.
10 10
(...skipping 8932 matching lines...) Expand 10 before | Expand all | Expand 10 after
8943 <summary>Tracks touchpad ThreeFingerSwipe setting on startup.</summary> 8943 <summary>Tracks touchpad ThreeFingerSwipe setting on startup.</summary>
8944 </histogram> 8944 </histogram>
8945 8945
8946 <histogram name="Translate.CaptureText" units="milliseconds"> 8946 <histogram name="Translate.CaptureText" units="milliseconds">
8947 <summary> 8947 <summary>
8948 The time spent capturing plain text from the DOM. This is reported by 8948 The time spent capturing plain text from the DOM. This is reported by
8949 ChromeRenderViewObserver when a page is loaded completely. 8949 ChromeRenderViewObserver when a page is loaded completely.
8950 </summary> 8950 </summary>
8951 </histogram> 8951 </histogram>
8952 8952
8953 <histogram name="Translate.ContentLanguage" enum="TranslateContentLanguage"> 8953 <histogram name="Translate.ContentLanguage" enum="TranslateLanguage">
8954 <summary> 8954 <summary>
8955 A page may provide a Content-Language HTTP header or a META tag. For each 8955 A page may provide a Content-Language HTTP header or a META tag. For each
8956 page load, measures whether the Content-Language header exists and is valid. 8956 page load, measures whether the Content-Language header exists and is valid.
8957 </summary> 8957 </summary>
8958 </histogram> 8958 </histogram>
8959 8959
8960 <histogram name="Translate.HtmlLang" enum="TranslateLanguage">
8961 <summary>
8962 A page may provide a lang attribute in html tag. For each page load,
8963 measures whether the lang attribute exists and is valid.
8964 </summary>
8965 </histogram>
8966
8960 <histogram name="Translate.InitiationStatus" enum="TranslateInitiationStatus"> 8967 <histogram name="Translate.InitiationStatus" enum="TranslateInitiationStatus">
8961 <summary> 8968 <summary>
8962 The reason why Chrome decided to perform the next action (e.g., to show 8969 The reason why Chrome decided to perform the next action (e.g., to show
8963 infobar, to translate a page without any prompting, and so on) when Chrome 8970 infobar, to translate a page without any prompting, and so on) when Chrome
8964 Translate is ready to translate a page. 8971 Translate is ready to translate a page.
8965 </summary> 8972 </summary>
8966 </histogram> 8973 </histogram>
8967 8974
8968 <histogram name="Translate.LanguageVerification" 8975 <histogram name="Translate.LanguageVerification"
8969 enum="TranslateLanguageVerification"> 8976 enum="TranslateLanguageVerification">
(...skipping 5096 matching lines...) Expand 10 before | Expand all | Expand 10 after
14066 </int> 14073 </int>
14067 <int value="4" label="NO_TP_PRESENT_TP_EXPECTED_RESUME"> 14074 <int value="4" label="NO_TP_PRESENT_TP_EXPECTED_RESUME">
14068 Built-in touchpad not detected at resume time on a device with built-in 14075 Built-in touchpad not detected at resume time on a device with built-in
14069 touchpad (touchpad failure at resume time) 14076 touchpad (touchpad failure at resume time)
14070 </int> 14077 </int>
14071 <int value="5" label="TP_PRESENT_TP_EXPECTED_RESUME"> 14078 <int value="5" label="TP_PRESENT_TP_EXPECTED_RESUME">
14072 Built-in touchpad detected at resume time on a device with built-in touchpad 14079 Built-in touchpad detected at resume time on a device with built-in touchpad
14073 </int> 14080 </int>
14074 </enum> 14081 </enum>
14075 14082
14076 <enum name="TranslateContentLanguage" type="int">
14077 <int value="0" label="No Content-Language"/>
14078 <int value="1" label="Valid Content-Language"/>
14079 <int value="2" label="Invalid Content-Language"/>
14080 </enum>
14081
14082 <enum name="TranslateError" type="int"> 14083 <enum name="TranslateError" type="int">
14083 <int value="0" label="No error"/> 14084 <int value="0" label="No error"/>
14084 <int value="1" label="Network error"/> 14085 <int value="1" label="Network error"/>
14085 <int value="2" label="Initialization error"/> 14086 <int value="2" label="Initialization error"/>
14086 <int value="3" label="Unknown language"/> 14087 <int value="3" label="Unknown language"/>
14087 <int value="4" label="Unsupported language"/> 14088 <int value="4" label="Unsupported language"/>
14088 <int value="5" label="Identical language"/> 14089 <int value="5" label="Identical language"/>
14089 <int value="6" label="Translation error"/> 14090 <int value="6" label="Translation error"/>
14090 </enum> 14091 </enum>
14091 14092
14092 <enum name="TranslateInitiationStatus" type="int"> 14093 <enum name="TranslateInitiationStatus" type="int">
14093 <int value="0" label="Completely disabled by prefs"/> 14094 <int value="0" label="Completely disabled by prefs"/>
14094 <int value="1" label="Completely disabled by switch"/> 14095 <int value="1" label="Completely disabled by switch"/>
14095 <int value="2" label="Disabled by user configuration"/> 14096 <int value="2" label="Disabled by user configuration"/>
14096 <int value="3" label="Unsupported Language"/> 14097 <int value="3" label="Unsupported Language"/>
14097 <int value="4" label="Unsupported URL"/> 14098 <int value="4" label="Unsupported URL"/>
14098 <int value="5" label="Do nothing for similar languages"/> 14099 <int value="5" label="Do nothing for similar languages"/>
14099 <int value="6" label="Do nothing for accepted languages"/> 14100 <int value="6" label="Do nothing for accepted languages"/>
14100 <int value="7" label="Auto translation by user configuration"/> 14101 <int value="7" label="Auto translation by user configuration"/>
14101 <int value="8" label="Auto translation by linked from a translated page"/> 14102 <int value="8" label="Auto translation by linked from a translated page"/>
14102 <int value="9" label="Show infobar"/> 14103 <int value="9" label="Show infobar"/>
14103 </enum> 14104 </enum>
14104 14105
14106 <enum name="TranslateLanguage" type="int">
14107 <int value="0" label="No language code"/>
14108 <int value="1" label="Valid language code"/>
14109 <int value="2" label="Invalid language code"/>
14110 </enum>
14111
14105 <enum name="TranslateLanguageVerification" type="int"> 14112 <enum name="TranslateLanguageVerification" type="int">
14106 <int value="0" label="CLD is disabled"/> 14113 <int value="0" label="CLD is disabled"/>
14107 <int value="1" label="No Content-Language"/> 14114 <int value="1" label="No Content-Language"/>
14108 <int value="2" label="CLD can not determine a language"/> 14115 <int value="2" label="CLD can not determine a language"/>
14109 <int value="3" label="CLD agrees with Content-Language"/> 14116 <int value="3" label="CLD agrees with Content-Language"/>
14110 <int value="4" label="CLD disagrees with Content-Language"/> 14117 <int value="4" label="CLD disagrees with Content-Language"/>
14111 </enum> 14118 </enum>
14112 14119
14113 <enum name="TranslateScheme" type="int"> 14120 <enum name="TranslateScheme" type="int">
14114 <int value="0" label="http"/> 14121 <int value="0" label="http"/>
(...skipping 1697 matching lines...) Expand 10 before | Expand all | Expand 10 after
15812 <fieldtrial name="SSLResumption"> 15819 <fieldtrial name="SSLResumption">
15813 <group name="Resume_Handshake" label="Session Resumption"/> 15820 <group name="Resume_Handshake" label="Session Resumption"/>
15814 <group name="Full_Handshake" label="Full"/> 15821 <group name="Full_Handshake" label="Full"/>
15815 <affected-histogram name="Net.SSL_Connection_Latency"/> 15822 <affected-histogram name="Net.SSL_Connection_Latency"/>
15816 <affected-histogram name="Net.SSL_Connection_Latency_Google"/> 15823 <affected-histogram name="Net.SSL_Connection_Latency_Google"/>
15817 </fieldtrial> 15824 </fieldtrial>
15818 15825
15819 </fieldtrials> 15826 </fieldtrials>
15820 15827
15821 </histogram-configuration> 15828 </histogram-configuration>
OLDNEW
« no previous file with comments | « chrome/renderer/translate/translate_helper_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698