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

Unified Diff: components/password_manager/content/browser/content_password_manager_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/password_manager/content/browser/content_password_manager_driver.cc
diff --git a/components/password_manager/content/browser/content_password_manager_driver.cc b/components/password_manager/content/browser/content_password_manager_driver.cc
index ffaf3ac58cef509fbd55ecf7b772da1167bec703..8a9f5903c45d7e0e8301cc4b17d7b32b9f9b0ad2 100644
--- a/components/password_manager/content/browser/content_password_manager_driver.cc
+++ b/components/password_manager/content/browser/content_password_manager_driver.cc
@@ -95,10 +95,11 @@ void ContentPasswordManagerDriver::FillSuggestion(
void ContentPasswordManagerDriver::PreviewSuggestion(
const base::string16& username,
- const base::string16& password) {
+ const base::string16& password,
+ size_t match_start) {
content::RenderFrameHost* host = render_frame_host_;
- host->Send(new AutofillMsg_PreviewPasswordSuggestion(host->GetRoutingID(),
- username, password));
+ host->Send(new AutofillMsg_PreviewPasswordSuggestion(
+ host->GetRoutingID(), username, password, match_start));
}
void ContentPasswordManagerDriver::ClearPreviewedForm() {

Powered by Google App Engine
This is Rietveld 408576698