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

Side by Side Diff: components/autofill/core/browser/autofill_experiments.h

Issue 2588133002: Make form-not-secure controllable as its own separate Finch feature (Closed)
Patch Set: elawrence, mathp comments; update histograms.xml Created 3 years, 12 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 2015 The Chromium Authors. All rights reserved. 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 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 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXPERIMENTS_H_ 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXPERIMENTS_H_
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXPERIMENTS_H_ 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXPERIMENTS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 // response of the option. 60 // response of the option.
61 bool OfferStoreUnmaskedCards(); 61 bool OfferStoreUnmaskedCards();
62 62
63 // Returns true if uploading credit cards to Wallet servers is enabled. This 63 // Returns true if uploading credit cards to Wallet servers is enabled. This
64 // requires the appropriate flags and user settings to be true and the user to 64 // requires the appropriate flags and user settings to be true and the user to
65 // be a member of a supported domain. 65 // be a member of a supported domain.
66 bool IsCreditCardUploadEnabled(const PrefService* pref_service, 66 bool IsCreditCardUploadEnabled(const PrefService* pref_service,
67 const syncer::SyncService* sync_service, 67 const syncer::SyncService* sync_service,
68 const std::string& user_email); 68 const std::string& user_email);
69 69
70 // Returns true if the http warning switch is on, which will display a warning
71 // in the autofill dropdown when credit card fields are on an HTTP page.
72 bool IsCreditCardAutofillHttpWarningEnabled();
73
74 // Returns whether the new Autofill credit card popup layout experiment is 70 // Returns whether the new Autofill credit card popup layout experiment is
75 // enabled. 71 // enabled.
76 bool IsAutofillCreditCardPopupLayoutExperimentEnabled(); 72 bool IsAutofillCreditCardPopupLayoutExperimentEnabled();
77 73
78 // Returns the background color for credit card autofill popup, or 74 // Returns the background color for credit card autofill popup, or
79 // |SK_ColorTRANSPARENT| if the new credit card autofill popup layout experiment 75 // |SK_ColorTRANSPARENT| if the new credit card autofill popup layout experiment
80 // is not enabled. 76 // is not enabled.
81 SkColor GetCreditCardPopupBackgroundColor(); 77 SkColor GetCreditCardPopupBackgroundColor();
82 78
83 // Returns the divider color for credit card autofill popup, or 79 // Returns the divider color for credit card autofill popup, or
(...skipping 14 matching lines...) Expand all
98 // before the credit card value or any other suggestion text. 94 // before the credit card value or any other suggestion text.
99 bool IsIconInCreditCardPopupAtStart(); 95 bool IsIconInCreditCardPopupAtStart();
100 96
101 // Modifies the suggestion value and label if the new credit card autofill popup 97 // Modifies the suggestion value and label if the new credit card autofill popup
102 // experiment is enabled to tweak the display of the value and label. 98 // experiment is enabled to tweak the display of the value and label.
103 void ModifyAutofillCreditCardSuggestion(struct Suggestion* suggestion); 99 void ModifyAutofillCreditCardSuggestion(struct Suggestion* suggestion);
104 100
105 } // namespace autofill 101 } // namespace autofill
106 102
107 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXPERIMENTS_H_ 103 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXPERIMENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698