Index: content/browser/accessibility/browser_accessibility_win.cc |
diff --git a/content/browser/accessibility/browser_accessibility_win.cc b/content/browser/accessibility/browser_accessibility_win.cc |
index 57e5e56cff8945a3fd465758bd9eea38ca42cf5d..b4d0aa51a9e1bc24c0e7a14a7a8ac82377c2a99c 100644 |
--- a/content/browser/accessibility/browser_accessibility_win.cc |
+++ b/content/browser/accessibility/browser_accessibility_win.cc |
@@ -2758,8 +2758,8 @@ STDMETHODIMP BrowserAccessibilityWin::get_computedStyleForProperties( |
// We only cache a single style property for now: DISPLAY |
for (unsigned short i = 0; i < num_style_properties; ++i) { |
- base::string16 name = (LPCWSTR)style_properties[i]; |
- base::StringToLowerASCII(&name); |
+ base::string16 name = base::ToLowerASCII( |
+ reinterpret_cast<const base::char16*>(style_properties[i])); |
if (name == L"display") { |
base::string16 display = GetString16Attribute( |
ui::AX_ATTR_DISPLAY); |