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

Unified Diff: content/test/accessibility_browser_test_utils.cc

Issue 1413423003: Move some AX attrs from AXNodeData to AXTreeData. (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
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | ui/accessibility/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/accessibility_browser_test_utils.cc
diff --git a/content/test/accessibility_browser_test_utils.cc b/content/test/accessibility_browser_test_utils.cc
index 58ff89c05ec312f71e2cbb041dffd7835fcbef8e..6b050a013b4df206db0a706e0c29c4fca606a449 100644
--- a/content/test/accessibility_browser_test_utils.cc
+++ b/content/test/accessibility_browser_test_utils.cc
@@ -99,14 +99,7 @@ bool AccessibilityNotificationWaiter::IsAboutBlank() {
// Skip any accessibility notifications related to "about:blank",
// to avoid a possible race condition between the test beginning
// listening for accessibility events and "about:blank" loading.
- const ui::AXNodeData& root = GetAXTree().root()->data();
- for (size_t i = 0; i < root.string_attributes.size(); ++i) {
- if (root.string_attributes[i].first != ui::AX_ATTR_DOC_URL)
- continue;
- const std::string& doc_url = root.string_attributes[i].second;
- return doc_url == url::kAboutBlankURL;
- }
- return false;
+ return GetAXTree().data().url == url::kAboutBlankURL;
}
} // namespace content
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | ui/accessibility/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698