| OLD | NEW |
| 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 // Forces the password manager to not ignore autocomplete='off' for password | 10 // Forces the password manager to not ignore autocomplete='off' for password |
| 11 // forms. | 11 // forms. |
| 12 const char kDisableIgnoreAutocompleteOff[] = "do-not-ignore-autocomplete-off"; | 12 const char kDisableIgnoreAutocompleteOff[] = "do-not-ignore-autocomplete-off"; |
| 13 | 13 |
| 14 // Disables an interactive autocomplete UI. See kEnableInteractiveAutocomplete | |
| 15 // for a description. | |
| 16 const char kDisableInteractiveAutocomplete[] = | |
| 17 "disable-interactive-autocomplete"; | |
| 18 | |
| 19 // Disables password generation when we detect that the user is going through | 14 // Disables password generation when we detect that the user is going through |
| 20 // account creation. | 15 // account creation. |
| 21 const char kDisablePasswordGeneration[] = "disable-password-generation"; | 16 const char kDisablePasswordGeneration[] = "disable-password-generation"; |
| 22 | 17 |
| 23 // Enables an interactive autocomplete UI and a way to invoke this UI from | |
| 24 // WebKit by enabling HTMLFormElement#requestAutocomplete (and associated | |
| 25 // autocomplete* events and logic). | |
| 26 const char kEnableInteractiveAutocomplete[] = "enable-interactive-autocomplete"; | |
| 27 | |
| 28 // Enables password generation when we detect that the user is going through | 18 // Enables password generation when we detect that the user is going through |
| 29 // account creation. | 19 // account creation. |
| 30 const char kEnablePasswordGeneration[] = "enable-password-generation"; | 20 const char kEnablePasswordGeneration[] = "enable-password-generation"; |
| 31 | 21 |
| 32 // Removes the requirement that we recieved a ping from the autofill servers | 22 // Removes the requirement that we recieved a ping from the autofill servers |
| 33 // and that the user doesn't have the given form blacklisted. Used in testing. | 23 // and that the user doesn't have the given form blacklisted. Used in testing. |
| 34 const char kLocalHeuristicsOnlyForPasswordGeneration[] = | 24 const char kLocalHeuristicsOnlyForPasswordGeneration[] = |
| 35 "local-heuristics-only-for-password-generation"; | 25 "local-heuristics-only-for-password-generation"; |
| 36 | 26 |
| 37 // Annotates forms with Autofill field type predictions. | 27 // Annotates forms with Autofill field type predictions. |
| 38 const char kShowAutofillTypePredictions[] = "show-autofill-type-predictions"; | 28 const char kShowAutofillTypePredictions[] = "show-autofill-type-predictions"; |
| 39 | 29 |
| 40 // Secure service URL for Online Wallet service. Used as the base url to escrow | 30 // Secure service URL for Online Wallet service. Used as the base url to escrow |
| 41 // credit card numbers. | 31 // credit card numbers. |
| 42 const char kWalletSecureServiceUrl[] = "wallet-secure-service-url"; | 32 const char kWalletSecureServiceUrl[] = "wallet-secure-service-url"; |
| 43 | 33 |
| 44 // Service URL for Online Wallet service. Used as the base url for Online Wallet | 34 // Service URL for Online Wallet service. Used as the base url for Online Wallet |
| 45 // API calls. | 35 // API calls. |
| 46 const char kWalletServiceUrl[] = "wallet-service-url"; | 36 const char kWalletServiceUrl[] = "wallet-service-url"; |
| 47 | 37 |
| 48 // Use the sandbox Online Wallet service URL (for developer testing). | 38 // Use the sandbox Online Wallet service URL (for developer testing). |
| 49 const char kWalletServiceUseSandbox[] = "wallet-service-use-sandbox"; | 39 const char kWalletServiceUseSandbox[] = "wallet-service-use-sandbox"; |
| 50 | 40 |
| 51 } // namespace switches | 41 } // namespace switches |
| 52 } // namespace autofill | 42 } // namespace autofill |
| OLD | NEW |