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

Unified Diff: chrome/browser/extensions/api/automation_internal/automation_event_router.cc

Issue 1155183006: Reimplement automation API on top of C++-backed AXTree. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@automation_faster_2
Patch Set: Fix accessibility_unittest Created 5 years, 6 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: chrome/browser/extensions/api/automation_internal/automation_event_router.cc
diff --git a/chrome/browser/extensions/api/automation_internal/automation_event_router.cc b/chrome/browser/extensions/api/automation_internal/automation_event_router.cc
index 5dee32f19bd90e2bb1a15f99012cee77838984c0..7db3b1b9bfdb2fa41a750a137d5edbc422c99d89 100644
--- a/chrome/browser/extensions/api/automation_internal/automation_event_router.cc
+++ b/chrome/browser/extensions/api/automation_internal/automation_event_router.cc
@@ -62,7 +62,9 @@ void AutomationEventRouter::DispatchAccessibilityEvent(
content::RenderProcessHost* rph =
content::RenderProcessHost::FromID(listener.process_id);
- rph->Send(new ExtensionMsg_AccessibilityEvent(listener.routing_id, params));
+ CHECK(rph);
dcheng 2015/06/15 21:36:54 What's the point of this CHECK?
dmazzoni 2015/06/16 18:19:48 Done.
+ rph->Send(new ExtensionMsg_AccessibilityEvent(listener.routing_id,
+ params));
}
}
@@ -132,7 +134,7 @@ void AutomationEventRouter::Observe(
listeners_.begin(),
listeners_.end(),
[process_id](AutomationListener& item) {
dcheng 2015/06/15 21:36:55 const AutomationListener& to prevent typos like th
dmazzoni 2015/06/16 18:19:48 Done.
- return item.process_id = process_id;
+ return item.process_id == process_id;
});
}

Powered by Google App Engine
This is Rietveld 408576698