Chromium Code Reviews| 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; |
| }); |
| } |