blob: 53a8b465f1b2e9d52616ee49df78225324b8d352 [file] [log] [blame]
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/autofill/core/common/autofill_constants.h"
#include "build/build_config.h"
#include "components/autofill/core/common/autofill_features.h"
namespace autofill {
const char kHelpURL[] =
#if defined(OS_CHROMEOS)
"https://support.google.com/chromebook/?p=settings_autofill";
#else
"https://support.google.com/chrome/?p=settings_autofill";
#endif
const char kSettingsOrigin[] = "Chrome settings";
size_t MinRequiredFieldsForHeuristics() {
return base::FeatureList::IsEnabled(
autofill::features::kAutofillEnforceMinRequiredFieldsForHeuristics)
? 3
: 1;
}
size_t MinRequiredFieldsForQuery() {
return base::FeatureList::IsEnabled(
autofill::features::kAutofillEnforceMinRequiredFieldsForQuery)
? 3
: 1;
}
size_t MinRequiredFieldsForUpload() {
return base::FeatureList::IsEnabled(
autofill::features::kAutofillEnforceMinRequiredFieldsForUpload)
? 3
: 1;
}
} // namespace autofill