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

Unified Diff: content/browser/accessibility/accessibility_ui.cc

Issue 2664753002: Remove base::StringValue (Closed)
Patch Set: Rebase Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
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()));
}
« no previous file with comments | « content/browser/accessibility/accessibility_tree_formatter_mac.mm ('k') | content/browser/appcache/appcache_internals_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698