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

Unified Diff: components/autofill/content/renderer/password_autofill_agent.h

Issue 962673004: [Autofill/Autocomplete Feature] Substring matching instead of prefix matching. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Incorporated Vaclav's review comments. Created 5 years, 5 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/renderer/password_autofill_agent.h
diff --git a/components/autofill/content/renderer/password_autofill_agent.h b/components/autofill/content/renderer/password_autofill_agent.h
index 459f7b66f6301a8ae8a4d95ecabdfd2b6e281344..3461d4ce58337b4723e457a7102dcdbf595e8def 100644
--- a/components/autofill/content/renderer/password_autofill_agent.h
+++ b/components/autofill/content/renderer/password_autofill_agent.h
@@ -272,9 +272,8 @@ class PasswordAutofillAgent : public content::RenderFrameObserver {
// True indicates that the password field was autofilled, false otherwise.
bool was_password_autofilled_;
- // Records original starting point of username element's selection range
- // before preview.
- int username_selection_start_;
+ // Records the username typed before suggestions preview.
+ base::string16 username_query_prefix_;
// True indicates that all frames in a page have been rendered.
bool did_stop_loading_;

Powered by Google App Engine
This is Rietveld 408576698