Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.3:Update
chromium.17445
chromium-99-AutofillAssistantModelExecutor-NoDe...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File chromium-99-AutofillAssistantModelExecutor-NoDestructor.patch of Package chromium.17445
From f1befebb6cea78950b5a8133bf3e65d56889d353 Mon Sep 17 00:00:00 2001 From: Jose Dapena Paz <jdapena@igalia.com> Date: Thu, 20 Jan 2022 09:38:13 +0100 Subject: [PATCH] GCC: use braces initialization for NoDestructor in AutofillAssistantModelExecutor Fix build with GCC failing to resolve initialization of NoDestructor with initializer list. Bug: 819294 Change-Id: I5fe8d30b4aefdddd71ff7b220eeffcd838308f5a --- diff --git a/components/autofill_assistant/content/renderer/autofill_assistant_model_executor.cc b/components/autofill_assistant/content/renderer/autofill_assistant_model_executor.cc index 033205b..670376e 100644 --- a/components/autofill_assistant/content/renderer/autofill_assistant_model_executor.cc +++ b/components/autofill_assistant/content/renderer/autofill_assistant_model_executor.cc @@ -156,13 +156,13 @@ // TODO(b/204841212): Implement this with use of ModelMetadata. absl::optional<std::string> AutofillAssistantModelExecutor::Postprocess( const std::vector<const TfLiteTensor*>& output_tensors) { - static const base::NoDestructor<std::vector<std::string>> output_roles( + static const base::NoDestructor<std::vector<std::string>> output_roles{ {"UNKNOWN_ROLE", "NAME_FIRST", "NAME_LAST", "NAME_FULL", "ADDRESS_LINE1", "ADDRESS_LINE2", "CITY", "STATE", "COUNTRY", "POSTAL_CODE", "CREDIT_CARD_NUMBER", "CREDIT_CARD_EXP_MONTH", "CREDIT_CARD_VERIFICATION_CODE", "ORGANIZATION", "CREDIT_CARD_EXPIRATION", "PHONE_NUMBER", "USERNAME_OR_EMAIL", - "CREDIT_CARD_EXP_YEAR"}); + "CREDIT_CARD_EXP_YEAR"}}; DCHECK_GE(output_tensors.size(), 1u); std::vector<float> data;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor