Only grant permissions to new extensions from sync if they have the expected version
[chromium-blink-merge.git] / components / autofill / core / browser / autofill_experiments.h
blobcd2764ebfd499b7d5902253e76172706993d7568
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_
8 class PrefService;
10 namespace autofill {
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_