Index: components/autofill/core/browser/autofill_manager.cc |
diff --git a/components/autofill/core/browser/autofill_manager.cc b/components/autofill/core/browser/autofill_manager.cc |
index 338de9eb17c628c82bc4bfecc75df40e7b1b0f55..ba980105033613b2743909de4de857f98eb056c1 100644 |
--- a/components/autofill/core/browser/autofill_manager.cc |
+++ b/components/autofill/core/browser/autofill_manager.cc |
@@ -534,8 +534,7 @@ void AutofillManager::OnFillAutofillFormData(int query_id, |
} |
} |
- host->Send(new AutofillMsg_FormDataFilled(host->GetRoutingID(), query_id, |
- result)); |
+ driver_->SendFormDataToRenderer(query_id, result); |
return; |
} |
@@ -579,8 +578,7 @@ void AutofillManager::OnFillAutofillFormData(int query_id, |
if (autofilled_form_signatures_.size() > kMaxRecentFormSignaturesToRemember) |
autofilled_form_signatures_.pop_back(); |
- host->Send(new AutofillMsg_FormDataFilled( |
- host->GetRoutingID(), query_id, result)); |
+ driver_->SendFormDataToRenderer(query_id, result); |
} |
void AutofillManager::OnShowAutofillDialog() { |
@@ -955,10 +953,10 @@ bool AutofillManager::GetHost(RenderViewHost** host) const { |
return false; |
} |
- *host = driver_->GetWebContents()->GetRenderViewHost(); |
- if (!*host) |
+ if (!driver_->CanSendToRenderer()) |
return false; |
+ *host = driver_->GetWebContents()->GetRenderViewHost(); |
blundell
2013/06/24 20:25:14
This is just in place until I change all callsites
|
return true; |
} |