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

Unified Diff: components/autofill/core/browser/autofill_experiments.cc

Issue 2649623002: [Autofill] Uses uniform margin for icon, label and sublabel in popup (Closed)
Patch Set: Moves label margin calculation to constructor. Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: components/autofill/core/browser/autofill_experiments.cc
diff --git a/components/autofill/core/browser/autofill_experiments.cc b/components/autofill/core/browser/autofill_experiments.cc
index ccee8c56c7217774babb961a1d4317254ec500bc..777b963e8f34484524673b10c0e6783ae38dbca8 100644
--- a/components/autofill/core/browser/autofill_experiments.cc
+++ b/components/autofill/core/browser/autofill_experiments.cc
@@ -39,6 +39,7 @@ const char kAutofillPopupDropdownItemHeightKey[] =
"dropdown_item_height";
const char kAutofillCreditCardPopupIsIconAtStartKey[] =
"is_credit_card_icon_at_start";
+const char kAutofillPopupMarginKey[] = "margin";
namespace {
@@ -128,6 +129,10 @@ void ModifyAutofillCreditCardSuggestion(Suggestion* suggestion) {
}
}
+unsigned int GetPopupMargin() {
+ return GetCreditCardPopupParameterUintValue(kAutofillPopupMarginKey);
+}
+
bool OfferStoreUnmaskedCards() {
#if defined(OS_LINUX) && !defined(OS_CHROMEOS)
// The checkbox can be forced on with a flag, but by default we don't store

Powered by Google App Engine
This is Rietveld 408576698