diff options
Diffstat (limited to 'win8')
-rw-r--r-- | win8/test/ui_automation_client.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/win8/test/ui_automation_client.cc b/win8/test/ui_automation_client.cc index 9aa4237..22c1af1 100644 --- a/win8/test/ui_automation_client.cc +++ b/win8/test/ui_automation_client.cc @@ -323,10 +323,11 @@ void UIAutomationClient::Context::HandleWindowOpen( base::string16 class_name(V_BSTR(var.ptr())); - // Window class names are atoms, which are case-insensitive. + // Window class names are atoms, which are case-insensitive. Assume that + // the window in question only needs ASCII case-insensitivity. if (class_name.size() == class_name_.size() && std::equal(class_name.begin(), class_name.end(), class_name_.begin(), - base::CaseInsensitiveCompare<wchar_t>())) { + base::CaseInsensitiveCompareASCII<wchar_t>())) { RemoveWindowObserver(); ProcessWindow(window); } |