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

Side by Side Diff: components/autofill/core/common/autofill_switches.cc

Issue 962673004: [Autofill/Autocomplete Feature] Substring matching instead of prefix matching. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changes in BUILD.gn 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/autofill/core/common/autofill_switches.h" 5 #include "components/autofill/core/common/autofill_switches.h"
6 6
7 namespace autofill { 7 namespace autofill {
8 namespace switches { 8 namespace switches {
9 9
10 // Disables using device's camera to scan a new credit card when filling out a 10 // Disables using device's camera to scan a new credit card when filling out a
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 // account creation. 54 // account creation.
55 const char kEnablePasswordGeneration[] = "enable-password-generation"; 55 const char kEnablePasswordGeneration[] = "enable-password-generation";
56 56
57 // Enable showing password save prompt on in-page navigations 57 // Enable showing password save prompt on in-page navigations
58 const char kEnablePasswordSaveOnInPageNavigation[] = 58 const char kEnablePasswordSaveOnInPageNavigation[] =
59 "enable-password-save-in-page-navigation"; 59 "enable-password-save-in-page-navigation";
60 60
61 // Enables/disables suggestions without typing anything (on first click). 61 // Enables/disables suggestions without typing anything (on first click).
62 const char kEnableSingleClickAutofill[] = "enable-single-click-autofill"; 62 const char kEnableSingleClickAutofill[] = "enable-single-click-autofill";
63 63
64 // Enables suggestions with substring matching instead of prefix matching.
65 const char kEnableSuggestionsWithSubstringMatch[] =
66 "enable-suggestions-with-substring-match";
67
64 // Enables syncing usage counts and last use dates of Wallet addresses and 68 // Enables syncing usage counts and last use dates of Wallet addresses and
65 // cards. 69 // cards.
66 const char kEnableWalletMetadataSync[] = "enable-wallet-metadata-sync"; 70 const char kEnableWalletMetadataSync[] = "enable-wallet-metadata-sync";
67 71
68 // Ignores autocomplete="off" for Autofill data (profiles + credit cards). 72 // Ignores autocomplete="off" for Autofill data (profiles + credit cards).
69 const char kIgnoreAutocompleteOffForAutofill[] = 73 const char kIgnoreAutocompleteOffForAutofill[] =
70 "ignore-autocomplete-off-autofill"; 74 "ignore-autocomplete-off-autofill";
71 75
72 // Removes the requirement that we recieved a ping from the autofill servers 76 // Removes the requirement that we recieved a ping from the autofill servers
73 // and that the user doesn't have the given form blacklisted. Used in testing. 77 // and that the user doesn't have the given form blacklisted. Used in testing.
74 const char kLocalHeuristicsOnlyForPasswordGeneration[] = 78 const char kLocalHeuristicsOnlyForPasswordGeneration[] =
75 "local-heuristics-only-for-password-generation"; 79 "local-heuristics-only-for-password-generation";
76 80
77 // Annotates forms with Autofill field type predictions. 81 // Annotates forms with Autofill field type predictions.
78 const char kShowAutofillTypePredictions[] = "show-autofill-type-predictions"; 82 const char kShowAutofillTypePredictions[] = "show-autofill-type-predictions";
79 83
80 // Secure service URL for Online Wallet service. Used as the base url to escrow 84 // Secure service URL for Online Wallet service. Used as the base url to escrow
81 // credit card numbers. 85 // credit card numbers.
82 const char kWalletSecureServiceUrl[] = "wallet-secure-service-url"; 86 const char kWalletSecureServiceUrl[] = "wallet-secure-service-url";
83 87
84 // Service URL for Online Wallet service. Used as the base url for Online Wallet 88 // Service URL for Online Wallet service. Used as the base url for Online Wallet
85 // API calls. 89 // API calls.
86 const char kWalletServiceUrl[] = "wallet-service-url"; 90 const char kWalletServiceUrl[] = "wallet-service-url";
87 91
88 // Use the sandbox Online Wallet service URL (for developer testing). 92 // Use the sandbox Online Wallet service URL (for developer testing).
89 const char kWalletServiceUseSandbox[] = "wallet-service-use-sandbox"; 93 const char kWalletServiceUseSandbox[] = "wallet-service-use-sandbox";
90 94
91 } // namespace switches 95 } // namespace switches
92 } // namespace autofill 96 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698