Index: content/browser/accessibility/accessibility_ui.cc |
diff --git a/content/browser/accessibility/accessibility_ui.cc b/content/browser/accessibility/accessibility_ui.cc |
index 7c8062688b61e734408ea229e018e44a95749d50..1f377921a08d808e05abeff6075badf73632a472 100644 |
--- a/content/browser/accessibility/accessibility_ui.cc |
+++ b/content/browser/accessibility/accessibility_ui.cc |
@@ -309,7 +309,7 @@ void AccessibilityUI::RequestAccessibilityTree(const base::ListValue* args) { |
std::unique_ptr<base::DictionaryValue> result(new base::DictionaryValue()); |
result->SetInteger(kProcessIdField, process_id); |
result->SetInteger(kRouteIdField, route_id); |
- result->Set("error", new base::StringValue("Renderer no longer exists.")); |
+ result->Set("error", new base::Value("Renderer no longer exists.")); |
web_ui()->CallJavascriptFunctionUnsafe("accessibility.showTree", |
*(result.get())); |
return; |
@@ -338,8 +338,7 @@ void AccessibilityUI::RequestAccessibilityTree(const base::ListValue* args) { |
formatter->FormatAccessibilityTree(ax_mgr->GetRoot(), |
&accessibility_contents_utf16); |
result->Set("tree", |
- new base::StringValue( |
- base::UTF16ToUTF8(accessibility_contents_utf16))); |
+ new base::Value(base::UTF16ToUTF8(accessibility_contents_utf16))); |
web_ui()->CallJavascriptFunctionUnsafe("accessibility.showTree", |
*(result.get())); |
} |