1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXPERIMENTS_H_
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXPERIMENTS_H_
12 // Returns true if autofill should be enabled. See also
13 // IsInAutofillSuggestionsDisabledExperiment below.
14 bool IsAutofillEnabled(const PrefService
* pref_service
);
16 // Returns true if autofill suggestions are disabled via experiment. The
17 // disabled experiment isn't the same as disabling autofill completely since we
18 // still want to run detection code for metrics purposes. This experiment just
19 // disables providing suggestions.
20 bool IsInAutofillSuggestionsDisabledExperiment();
22 // Returns true if the user should be offered to locally store unmasked cards.
23 // This controls whether the option is presented at all rather than the default
24 // response of the option.
25 bool OfferStoreUnmaskedCards();
27 } // namespace autofill
29 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXPERIMENTS_H_