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

Unified Diff: components/autofill/core/common/autofill_util.cc

Issue 2706403003: [Autofill] Fix of crashes caused by show-autofill-signatures flag (Closed)
Patch Set: Added an entry to histograms.xml Created 3 years, 10 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
« no previous file with comments | « components/autofill/core/common/autofill_util.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/autofill/core/common/autofill_util.cc
diff --git a/components/autofill/core/common/autofill_util.cc b/components/autofill/core/common/autofill_util.cc
index bc458a9609cd5331fc11fb2800dd4798eb9ec76d..c20ac562e437da1251f2ebd97580db54080fa7ee 100644
--- a/components/autofill/core/common/autofill_util.cc
+++ b/components/autofill/core/common/autofill_util.cc
@@ -42,6 +42,11 @@ bool IsFeatureSubstringMatchEnabled() {
switches::kEnableSuggestionsWithSubstringMatch);
}
+bool IsShowAutofillSignaturesEnabled() {
+ return base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kShowAutofillSignatures);
+}
+
bool IsKeyboardAccessoryEnabled() {
#if defined(OS_ANDROID)
return base::CommandLine::ForCurrentProcess()->HasSwitch(
« no previous file with comments | « components/autofill/core/common/autofill_util.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698