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

Unified Diff: components/test_runner/web_frame_test_client.cc

Issue 1903043002: Use correct WebView from AccessibilityController. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@event-sender-per-view
Patch Set: Rebasing... Created 4 years, 8 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 | « components/test_runner/web_frame_test_client.h ('k') | components/test_runner/web_test_interfaces.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/test_runner/web_frame_test_client.cc
diff --git a/components/test_runner/web_frame_test_client.cc b/components/test_runner/web_frame_test_client.cc
index cc0256d4b978cbbd4dc12e00f4f3709e7e4146c1..7f183aab9c6f78b4e1c77619a3fdd602209d1a78 100644
--- a/components/test_runner/web_frame_test_client.cc
+++ b/components/test_runner/web_frame_test_client.cc
@@ -200,15 +200,12 @@ void CheckDone(blink::WebLocalFrame* frame,
WebFrameTestClient::WebFrameTestClient(
TestRunner* test_runner,
WebTestDelegate* delegate,
- AccessibilityController* accessibility_controller,
WebTestProxyBase* web_test_proxy_base)
: test_runner_(test_runner),
delegate_(delegate),
- accessibility_controller_(accessibility_controller),
web_test_proxy_base_(web_test_proxy_base) {
DCHECK(test_runner);
DCHECK(delegate_);
- DCHECK(accessibility_controller_);
DCHECK(web_test_proxy_base_);
}
@@ -368,8 +365,10 @@ void WebFrameTestClient::postAccessibilityEvent(const blink::WebAXObject& obj,
break;
}
- accessibility_controller_->NotificationReceived(obj, event_name);
- if (accessibility_controller_->ShouldLogAccessibilityEvents()) {
+ AccessibilityController* accessibility_controller =
+ web_test_proxy_base_->accessibility_controller();
+ accessibility_controller->NotificationReceived(obj, event_name);
+ if (accessibility_controller->ShouldLogAccessibilityEvents()) {
std::string message("AccessibilityNotification - ");
message += event_name;
« no previous file with comments | « components/test_runner/web_frame_test_client.h ('k') | components/test_runner/web_test_interfaces.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698