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

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

Issue 2649623002: [Autofill] Uses uniform margin for icon, label and sublabel in popup (Closed)
Patch Set: Removes the 1px offset because the misalignment between card icon and 'C' in 'Chrom...' appears to … 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.h
diff --git a/components/autofill/core/browser/autofill_experiments.h b/components/autofill/core/browser/autofill_experiments.h
index db0868762b313450cfab568520ce440fdd49dd22..de718d4b3af8744ab53670b0548d1483fc47c4fb 100644
--- a/components/autofill/core/browser/autofill_experiments.h
+++ b/components/autofill/core/browser/autofill_experiments.h
@@ -86,6 +86,10 @@ bool IsIconInCreditCardPopupAtStart();
// experiment is enabled to tweak the display of the value and label.
void ModifyAutofillCreditCardSuggestion(struct Suggestion* suggestion);
+// Returns the margin for the icon, label and between icon and label. Returns 0
+// if the margin isn't configured in an experiment to tweak autofill popup
+// layout.
+unsigned int GetPopupMargin();
Mathieu 2017/01/27 00:40:43 if specific to credit card, I would rename the met
Mathieu 2017/01/27 00:40:44 nit: newline after this
csashi 2017/01/27 01:21:32 Done.
csashi 2017/01/27 01:21:32 Not specific to credit card.
} // namespace autofill
#endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXPERIMENTS_H_

Powered by Google App Engine
This is Rietveld 408576698