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

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: Created 7 years, 7 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
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 8541 matching lines...) Expand 10 before | Expand all | Expand 10 after
8552 <summary>Tracks touchpad ThreeFingerSwipe setting on startup.</summary> 8552 <summary>Tracks touchpad ThreeFingerSwipe setting on startup.</summary>
8553 </histogram> 8553 </histogram>
8554 8554
8555 <histogram name="Translate.CaptureText" units="milliseconds"> 8555 <histogram name="Translate.CaptureText" units="milliseconds">
8556 <summary> 8556 <summary>
8557 The time spent capturing plain text from the DOM. This is reported by 8557 The time spent capturing plain text from the DOM. This is reported by
8558 ChromeRenderViewObserver when a page is loaded completely. 8558 ChromeRenderViewObserver when a page is loaded completely.
8559 </summary> 8559 </summary>
8560 </histogram> 8560 </histogram>
8561 8561
8562 <histogram name="Translate.ContentLanguage" enum="TranslateContentLanguage"> 8562 <histogram name="Translate.ContentLanguage" enum="TranslateLanguage">
8563 <summary> 8563 <summary>
8564 A page may provide a Content-Language HTTP header or a META tag. For each 8564 A page may provide a Content-Language HTTP header or a META tag. For each
8565 page load, measures whether the Content-Language header exists and is valid. 8565 page load, measures whether the Content-Language header exists and is valid.
8566 </summary> 8566 </summary>
8567 </histogram> 8567 </histogram>
8568 8568
8569 <histogram name="Translate.HtmlLang" enum="TranslateLanguage">
8570 <summary>
8571 A page may provide a lang attribute in html tag. For each page load,
8572 measures whether the Content-Language header exists and is valid.
Ilya Sherman 2013/05/22 20:26:17 The header or the html tag?
Takashi Toyoshima 2013/05/23 00:37:14 Oops, sorry I'll fix it to "the lang attribute"
8573 </summary>
8574 </histogram>
8575
8569 <histogram name="Translate.InitiationStatus" enum="TranslateInitiationStatus"> 8576 <histogram name="Translate.InitiationStatus" enum="TranslateInitiationStatus">
8570 <summary> 8577 <summary>
8571 The reason why Chrome decided to perform the next action (e.g., to show 8578 The reason why Chrome decided to perform the next action (e.g., to show
8572 infobar, to translate a page without any prompting, and so on) when Chrome 8579 infobar, to translate a page without any prompting, and so on) when Chrome
8573 Translate is ready to translate a page. 8580 Translate is ready to translate a page.
8574 </summary> 8581 </summary>
8575 </histogram> 8582 </histogram>
8576 8583
8577 <histogram name="Translate.LanguageVerification" 8584 <histogram name="Translate.LanguageVerification"
8578 enum="TranslateLanguageVerification"> 8585 enum="TranslateLanguageVerification">
(...skipping 5003 matching lines...) Expand 10 before | Expand all | Expand 10 after
13582 </int> 13589 </int>
13583 <int value="4" label="NO_TP_PRESENT_TP_EXPECTED_RESUME"> 13590 <int value="4" label="NO_TP_PRESENT_TP_EXPECTED_RESUME">
13584 Built-in touchpad not detected at resume time on a device with built-in 13591 Built-in touchpad not detected at resume time on a device with built-in
13585 touchpad (touchpad failure at resume time) 13592 touchpad (touchpad failure at resume time)
13586 </int> 13593 </int>
13587 <int value="5" label="TP_PRESENT_TP_EXPECTED_RESUME"> 13594 <int value="5" label="TP_PRESENT_TP_EXPECTED_RESUME">
13588 Built-in touchpad detected at resume time on a device with built-in touchpad 13595 Built-in touchpad detected at resume time on a device with built-in touchpad
13589 </int> 13596 </int>
13590 </enum> 13597 </enum>
13591 13598
13592 <enum name="TranslateContentLanguage" type="int">
13593 <int value="0" label="No Content-Language"/>
13594 <int value="1" label="Valid Content-Language"/>
13595 <int value="2" label="Invalid Content-Language"/>
13596 </enum>
13597
13598 <enum name="TranslateError" type="int"> 13599 <enum name="TranslateError" type="int">
13599 <int value="0" label="No error"/> 13600 <int value="0" label="No error"/>
13600 <int value="1" label="Network error"/> 13601 <int value="1" label="Network error"/>
13601 <int value="2" label="Initialization error"/> 13602 <int value="2" label="Initialization error"/>
13602 <int value="3" label="Unknown language"/> 13603 <int value="3" label="Unknown language"/>
13603 <int value="4" label="Unsupported language"/> 13604 <int value="4" label="Unsupported language"/>
13604 <int value="5" label="Identical language"/> 13605 <int value="5" label="Identical language"/>
13605 <int value="6" label="Translation error"/> 13606 <int value="6" label="Translation error"/>
13606 </enum> 13607 </enum>
13607 13608
13608 <enum name="TranslateInitiationStatus" type="int"> 13609 <enum name="TranslateInitiationStatus" type="int">
13609 <int value="0" label="Completely disabled by prefs"/> 13610 <int value="0" label="Completely disabled by prefs"/>
13610 <int value="1" label="Completely disabled by switch"/> 13611 <int value="1" label="Completely disabled by switch"/>
13611 <int value="2" label="Disabled by user configuration"/> 13612 <int value="2" label="Disabled by user configuration"/>
13612 <int value="3" label="Unsupported Language"/> 13613 <int value="3" label="Unsupported Language"/>
13613 <int value="4" label="Unsupported URL"/> 13614 <int value="4" label="Unsupported URL"/>
13614 <int value="5" label="Do nothing for similar languages"/> 13615 <int value="5" label="Do nothing for similar languages"/>
13615 <int value="6" label="Do nothing for accepted languages"/> 13616 <int value="6" label="Do nothing for accepted languages"/>
13616 <int value="7" label="Auto translation by user configuration"/> 13617 <int value="7" label="Auto translation by user configuration"/>
13617 <int value="8" label="Auto translation by linked from a translated page"/> 13618 <int value="8" label="Auto translation by linked from a translated page"/>
13618 <int value="9" label="Show infobar"/> 13619 <int value="9" label="Show infobar"/>
13619 </enum> 13620 </enum>
13620 13621
13622 <enum name="TranslateLanguage" type="int">
13623 <int value="0" label="No language code"/>
13624 <int value="1" label="Valid language code"/>
13625 <int value="2" label="Invalid language code"/>
13626 </enum>
13627
13621 <enum name="TranslateLanguageVerification" type="int"> 13628 <enum name="TranslateLanguageVerification" type="int">
13622 <int value="0" label="CLD is disabled"/> 13629 <int value="0" label="CLD is disabled"/>
13623 <int value="1" label="No Content-Language"/> 13630 <int value="1" label="No Content-Language"/>
13624 <int value="2" label="CLD can not determine a language"/> 13631 <int value="2" label="CLD can not determine a language"/>
13625 <int value="3" label="CLD agrees with Content-Language"/> 13632 <int value="3" label="CLD agrees with Content-Language"/>
13626 <int value="4" label="CLD disagrees with Content-Language"/> 13633 <int value="4" label="CLD disagrees with Content-Language"/>
13627 </enum> 13634 </enum>
13628 13635
13629 <enum name="UniformityTrialGroupNotActive" type="int"> 13636 <enum name="UniformityTrialGroupNotActive" type="int">
13630 <int value="0" label="Invalid"/> 13637 <int value="0" label="Invalid"/>
(...skipping 1685 matching lines...) Expand 10 before | Expand all | Expand 10 after
15316 <fieldtrial name="SSLResumption"> 15323 <fieldtrial name="SSLResumption">
15317 <group name="Resume_Handshake" label="Session Resumption"/> 15324 <group name="Resume_Handshake" label="Session Resumption"/>
15318 <group name="Full_Handshake" label="Full"/> 15325 <group name="Full_Handshake" label="Full"/>
15319 <affected-histogram name="Net.SSL_Connection_Latency"/> 15326 <affected-histogram name="Net.SSL_Connection_Latency"/>
15320 <affected-histogram name="Net.SSL_Connection_Latency_Google"/> 15327 <affected-histogram name="Net.SSL_Connection_Latency_Google"/>
15321 </fieldtrial> 15328 </fieldtrial>
15322 15329
15323 </fieldtrials> 15330 </fieldtrials>
15324 15331
15325 </histogram-configuration> 15332 </histogram-configuration>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698