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

Unified Diff: content/browser/accessibility/accessibility_tree_formatter_mac.mm

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_tree_formatter_mac.mm
diff --git a/content/browser/accessibility/accessibility_tree_formatter_mac.mm b/content/browser/accessibility/accessibility_tree_formatter_mac.mm
index a844a94bd0495709837cd85f71b85aa2b81fa98d..1d67d2d88fff98f17e5e28d05a9890ca8a9e1c2b 100644
--- a/content/browser/accessibility/accessibility_tree_formatter_mac.mm
+++ b/content/browser/accessibility/accessibility_tree_formatter_mac.mm
@@ -92,7 +92,7 @@ std::unique_ptr<base::ListValue> PopulateArray(NSArray* array) {
return list;
}
-std::unique_ptr<base::StringValue> StringForBrowserAccessibility(
+std::unique_ptr<base::Value> StringForBrowserAccessibility(
BrowserAccessibilityCocoa* obj) {
NSMutableArray* tokens = [[NSMutableArray alloc] init];
@@ -122,8 +122,8 @@ std::unique_ptr<base::StringValue> StringForBrowserAccessibility(
}
NSString* result = [tokens componentsJoinedByString:@" "];
- return std::unique_ptr<base::StringValue>(
- new base::StringValue(SysNSStringToUTF16(result)));
+ return std::unique_ptr<base::Value>(
+ new base::Value(SysNSStringToUTF16(result)));
}
std::unique_ptr<base::Value> PopulateObject(id value) {
@@ -138,7 +138,7 @@ std::unique_ptr<base::Value> PopulateObject(id value) {
StringForBrowserAccessibility((BrowserAccessibilityCocoa*)value));
}
- return std::unique_ptr<base::Value>(new base::StringValue(
+ return std::unique_ptr<base::Value>(new base::Value(
SysNSStringToUTF16([NSString stringWithFormat:@"%@", value])));
}

Powered by Google App Engine
This is Rietveld 408576698