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

Unified Diff: chrome/browser/autofill/autofill_external_delegate.cc

Issue 9473001: Extract minimal RenderViewHost interface for embedders, leaving (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Ready for initial review. Created 8 years, 10 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/autofill/autofill_external_delegate.cc
diff --git a/chrome/browser/autofill/autofill_external_delegate.cc b/chrome/browser/autofill/autofill_external_delegate.cc
index 491ffee76157b18ddf2f831d6fc4ea5671cd04a1..bd0a9f330526e3f0a4c16c2e6d2b990cf0591b64 100644
--- a/chrome/browser/autofill/autofill_external_delegate.cc
+++ b/chrome/browser/autofill/autofill_external_delegate.cc
@@ -158,13 +158,13 @@ void AutofillExternalDelegate::DidAcceptAutofillSuggestions(string16 value,
// User selected 'Clear form'.
RenderViewHost* host =
tab_contents_wrapper_->web_contents()->GetRenderViewHost();
- host->Send(new AutofillMsg_ClearForm(host->routing_id()));
+ host->Send(new AutofillMsg_ClearForm(host->GetRoutingID()));
} else if (!unique_id) {
// User selected an Autocomplete entry, so we fill directly.
RenderViewHost* host =
tab_contents_wrapper_->web_contents()->GetRenderViewHost();
host->Send(new AutofillMsg_SetNodeText(
- host->routing_id(),
+ host->GetRoutingID(),
value));
} else {
FillAutofillFormData(unique_id, false);
@@ -176,7 +176,7 @@ void AutofillExternalDelegate::DidAcceptAutofillSuggestions(string16 value,
void AutofillExternalDelegate::ClearPreviewedForm() {
RenderViewHost* host =
tab_contents_wrapper_->web_contents()->GetRenderViewHost();
- host->Send(new AutofillMsg_ClearPreviewedForm(host->routing_id()));
+ host->Send(new AutofillMsg_ClearPreviewedForm(host->GetRoutingID()));
}
void AutofillExternalDelegate::HideAutofillPopup() {
@@ -193,10 +193,10 @@ void AutofillExternalDelegate::FillAutofillFormData(int unique_id,
if (is_preview) {
host->Send(new AutofillMsg_SetAutofillActionPreview(
- host->routing_id()));
+ host->GetRoutingID()));
} else {
host->Send(new AutofillMsg_SetAutofillActionFill(
- host->routing_id()));
+ host->GetRoutingID()));
}
// Fill the values for the whole form.

Powered by Google App Engine
This is Rietveld 408576698