diff options
Diffstat (limited to 'chromium/components/autofill/core/browser/autofill_download_manager.cc')
-rw-r--r-- | chromium/components/autofill/core/browser/autofill_download_manager.cc | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/chromium/components/autofill/core/browser/autofill_download_manager.cc b/chromium/components/autofill/core/browser/autofill_download_manager.cc index b7fa97bf3b0..a204abac8a6 100644 --- a/chromium/components/autofill/core/browser/autofill_download_manager.cc +++ b/chromium/components/autofill/core/browser/autofill_download_manager.cc @@ -100,7 +100,7 @@ const char kDefaultAutofillServerURL[] = // The default number of days after which to reset the registry of autofill // events for which an upload has been sent. -constexpr base::FeatureParam<int> kAutofillUploadThrottlingPeriodInDays( +const base::FeatureParam<int> kAutofillUploadThrottlingPeriodInDays( &features::kAutofillUploadThrottling, switches::kAutofillUploadThrottlingPeriodInDays, 28); @@ -114,7 +114,7 @@ constexpr char kGoogEncodeResponseIfExecutable[] = constexpr char kDefaultAPIKey[] = ""; // The maximum number of attempts for a given autofill request. -constexpr base::FeatureParam<int> kAutofillMaxServerAttempts( +const base::FeatureParam<int> kAutofillMaxServerAttempts( &features::kAutofillServerCommunication, "max-attempts", 5); @@ -778,8 +778,7 @@ std::tuple<GURL, std::string> AutofillDownloadManager::GetRequestURLAndMethod( std::string query_str; if (request_data.request_type == AutofillDownloadManager::REQUEST_QUERY) { - if (request_data.payload.length() <= kMaxQueryGetSize && - base::FeatureList::IsEnabled(features::kAutofillCacheQueryResponses)) { + if (request_data.payload.length() <= kMaxQueryGetSize) { method = "GET"; std::string base64_payload; base::Base64UrlEncode(request_data.payload, @@ -808,8 +807,7 @@ AutofillDownloadManager::GetRequestURLAndMethodForApi( std::string method = "POST"; if (request_data.request_type == AutofillDownloadManager::REQUEST_QUERY) { - if (GetPayloadLength(request_data.payload) <= kMaxAPIQueryGetSize && - base::FeatureList::IsEnabled(features::kAutofillCacheQueryResponses)) { + if (GetPayloadLength(request_data.payload) <= kMaxAPIQueryGetSize) { resource_id = request_data.payload; method = "GET"; UMA_HISTOGRAM_BOOLEAN("Autofill.Query.ApiUrlIsTooLong", false); |