summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chrome/browser/browser_accessibility_manager.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/chrome/browser/browser_accessibility_manager.cc b/chrome/browser/browser_accessibility_manager.cc
index a825995..9d8c15d 100644
--- a/chrome/browser/browser_accessibility_manager.cc
+++ b/chrome/browser/browser_accessibility_manager.cc
@@ -99,13 +99,12 @@ bool BrowserAccessibilityManager::RequestAccessibilityInfo(
if (!members || !members->render_widget_host_)
return false;
- IPC::SyncMessage* msg =
- new ViewMsg_GetAccessibilityInfo(
- members->render_widget_host_->routing_id(), in_params, &out_params_);
-
bool success = false;
if (members->render_widget_host_->process() &&
members->render_widget_host_->process()->channel()) {
+ IPC::SyncMessage* msg =
+ new ViewMsg_GetAccessibilityInfo(members->render_widget_host_->
+ routing_id(), in_params, &out_params_);
// Necessary for the send to keep the UI responsive.
msg->EnableMessagePumping();
// By default sync calls are unblocking, i.e if the receiver is an outgoing