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

Unified Diff: components/autofill/core/browser/suggestion.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: Added comments in autocomplete_history_manager.cc. 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/core/browser/suggestion.h
diff --git a/components/autofill/core/browser/suggestion.h b/components/autofill/core/browser/suggestion.h
index 6077185018ea1be0c3b1d62bc758ba990de13790..b256f9e9c98cdb4c15e1713994fbc3d3ead95ad6 100644
--- a/components/autofill/core/browser/suggestion.h
+++ b/components/autofill/core/browser/suggestion.h
@@ -17,6 +17,10 @@ class CreditCard;
struct Suggestion {
public:
+ enum MatchMode {
+ PREFIX_MATCH, // for prefix matched suggestions;
+ SUBSTRING_MATCH // for substring matched suggestions;
+ };
please use gerrit instead 2015/06/29 22:06:29 newline after };
Pritam Nikam 2015/06/30 15:05:50 Done.
Suggestion();
// Copy constructor for STL containers.
@@ -46,6 +50,7 @@ struct Suggestion {
base::string16 value;
base::string16 label;
base::string16 icon;
+ MatchMode match;
};
} // namespace autofill

Powered by Google App Engine
This is Rietveld 408576698