Bug 741699 - telemetry for uiautomation.dll r=askalski f=davidb

This commit is contained in:
Max Li 2012-04-05 07:34:44 -04:00
parent 8d46706cb3
commit 5ec771e00a
3 changed files with 6 additions and 2 deletions

View File

@ -117,6 +117,9 @@ Compatibility::Init()
::GetModuleHandleW(L"TextExtractorImpl64"))
sConsumers |= YOUDAO;
if (::GetModuleHandleW(L"uiautomation"))
sConsumers |= UIAUTOMATION;
// If we have a known consumer remove the unknown bit.
if (sConsumers != Compatibility::UNKNOWN)
sConsumers ^= Compatibility::UNKNOWN;

View File

@ -100,7 +100,8 @@ private:
ZOOMTEXT = 1 << 7,
KAZAGURU = 1 << 8,
YOUDAO = 1 << 9,
UNKNOWN = 1 << 10
UNKNOWN = 1 << 10,
UIAUTOMATION = 1 << 11
};
private:

View File

@ -61,7 +61,7 @@
* a11y telemetry
*/
HISTOGRAM_FLAG(A11Y_INSTANTIATED_FLAG, "has accessibility support been instantiated")
HISTOGRAM_ENUMERATED_VALUES(A11Y_CONSUMERS, 10, "Accessibility client by enum id")
HISTOGRAM_ENUMERATED_VALUES(A11Y_CONSUMERS, 11, "Accessibility client by enum id")
HISTOGRAM_FLAG(A11Y_ISIMPLEDOM_USAGE_FLAG, "have the ISimpleDOM* accessibility interfaces been used")
HISTOGRAM_FLAG(A11Y_IATABLE_USAGE_FLAG, "has the IAccessibleTable accessibility interface been used")
HISTOGRAM_FLAG(A11Y_XFORMS_USAGE_FLAG, "has XForms accessibility been instantiated")