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

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

Issue 1410333006: Enough hacks to make wstring printfs unneeded (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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_win.cc
diff --git a/content/browser/accessibility/accessibility_tree_formatter_win.cc b/content/browser/accessibility/accessibility_tree_formatter_win.cc
index c7ef471a616becfcf2ff70b0de13b0bae9f0cf6d..96690f7c82a59250c3a0ae658c6580286788965d 100644
--- a/content/browser/accessibility/accessibility_tree_formatter_win.cc
+++ b/content/browser/accessibility/accessibility_tree_formatter_win.cc
@@ -107,9 +107,9 @@ base::string16 GetIA2Hypertext(BrowserAccessibilityWin& ax_object) {
base::string16 child_index_str(L"<obj");
if (child_index >= 0) {
- base::StringAppendF(&child_index_str, L"%d>", child_index);
+ /*base::StringAppendF(&child_index_str, L"%d>", child_index);*/
} else {
- base::StringAppendF(&child_index_str, L">");
+ /*base::StringAppendF(&child_index_str, L">");*/
}
base::ReplaceFirstSubstringAfterOffset(&ia2_hypertext, hypertext_index,
embedded_character, child_index_str);
@@ -308,33 +308,33 @@ base::string16 AccessibilityTreeFormatter::ToString(
case base::Value::TYPE_STRING: {
base::string16 string_value;
value->GetAsString(&string_value);
- WriteAttribute(false,
+/* WriteAttribute(false,
brucedawson 2015/10/20 21:43:00 String printing of UTF8toUTF16(attribute_name), th
base::StringPrintf(L"%ls='%ls'",
base::UTF8ToUTF16(attribute_name).c_str(),
string_value.c_str()),
- &line);
+ &line);*/
break;
}
case base::Value::TYPE_INTEGER: {
int int_value;
value->GetAsInteger(&int_value);
- WriteAttribute(false,
+ /*WriteAttribute(false,
base::StringPrintf(L"%ls=%d",
base::UTF8ToUTF16(
attribute_name).c_str(),
int_value),
- &line);
+ &line);*/
break;
}
case base::Value::TYPE_DOUBLE: {
double double_value;
value->GetAsDouble(&double_value);
- WriteAttribute(false,
+/* WriteAttribute(false,
base::StringPrintf(L"%ls=%.2f",
base::UTF8ToUTF16(
attribute_name).c_str(),
double_value),
- &line);
+ &line);*/
break;
}
case base::Value::TYPE_LIST: {

Powered by Google App Engine
This is Rietveld 408576698