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

Unified Diff: components/autofill/content/browser/content_autofill_driver.cc

Issue 1208133002: [Autofill/Autocomplete Feature] Substring matching instead of prefix matching. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added |match_start| usage. 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: components/autofill/content/browser/content_autofill_driver.cc
diff --git a/components/autofill/content/browser/content_autofill_driver.cc b/components/autofill/content/browser/content_autofill_driver.cc
index f8c7729e5a4914bf9e8ffb895f6bb829b13e0857..bc6fcf29296166d49349f32fb20f3eacf5246dcd 100644
--- a/components/autofill/content/browser/content_autofill_driver.cc
+++ b/components/autofill/content/browser/content_autofill_driver.cc
@@ -138,11 +138,12 @@ void ContentAutofillDriver::RendererShouldFillFieldWithValue(
}
void ContentAutofillDriver::RendererShouldPreviewFieldWithValue(
- const base::string16& value) {
+ const base::string16& value,
+ size_t match_start) {
if (!RendererIsAvailable())
return;
render_frame_host_->Send(new AutofillMsg_PreviewFieldWithValue(
- render_frame_host_->GetRoutingID(), value));
+ render_frame_host_->GetRoutingID(), value, match_start));
}
void ContentAutofillDriver::PopupHidden() {

Powered by Google App Engine
This is Rietveld 408576698