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

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

Issue 906573003: Worked around a trybot change by replacing spaces with "+" for the indentation in accessibility bro… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Used two +s for indentation. Created 5 years, 10 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
« no previous file with comments | « no previous file | content/test/data/accessibility/aria/aria-activedescendant-expected-mac.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/accessibility/accessibility_tree_formatter.cc
diff --git a/content/browser/accessibility/accessibility_tree_formatter.cc b/content/browser/accessibility/accessibility_tree_formatter.cc
index 39956c3291ba4d8cd9f6c5ab098fe02cd110b99c..1f56cd47f654d33d3dd4ca0393b4fe3fb686e631 100644
--- a/content/browser/accessibility/accessibility_tree_formatter.cc
+++ b/content/browser/accessibility/accessibility_tree_formatter.cc
@@ -17,7 +17,8 @@
namespace content {
namespace {
-const int kIndentSpaces = 4;
+const char kIndentSymbol = '+';
+const int kIndentSymbolCount = 2;
const char* kSkipString = "@NO_DUMP";
const char* kChildrenDictAttr = "children";
}
@@ -76,7 +77,8 @@ void AccessibilityTreeFormatter::RecursiveBuildAccessibilityTree(
void AccessibilityTreeFormatter::RecursiveFormatAccessibilityTree(
const base::DictionaryValue& dict, base::string16* contents, int depth) {
- base::string16 indent = base::string16(depth * kIndentSpaces, ' ');
+ base::string16 indent = base::string16(depth * kIndentSymbolCount,
+ kIndentSymbol);
base::string16 line = indent + ToString(dict);
if (line.find(base::ASCIIToUTF16(kSkipString)) != base::string16::npos)
return;
« no previous file with comments | « no previous file | content/test/data/accessibility/aria/aria-activedescendant-expected-mac.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698