File chromium-146-keyfactory.patch of Package chromium
Author: Andres Salomon <diliger@debian.org>
can't increment there, mate!
../../components/enterprise/client_certificates/core/private_key_factory.cc:126:14: error: expression is not assignable
126 | ++std::find(std::begin(kKeySourcesOrderedBySecurity),
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
127 | std::end(kKeySourcesOrderedBySecurity), source);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
--- a/components/enterprise/client_certificates/core/private_key_factory.cc
+++ b/components/enterprise/client_certificates/core/private_key_factory.cc
@@ -123,8 +123,8 @@ void PrivateKeyFactoryImpl::OnPrivateKey
scoped_refptr<PrivateKey> private_key) {
if (!private_key && source != PrivateKeySource::kSoftwareKey) {
for (auto fallback_source =
- ++std::find(std::begin(kKeySourcesOrderedBySecurity),
- std::end(kKeySourcesOrderedBySecurity), source);
+ (std::find(std::begin(kKeySourcesOrderedBySecurity),
+ std::end(kKeySourcesOrderedBySecurity), source)+1);
fallback_source != std::end(kKeySourcesOrderedBySecurity);
fallback_source++) {
auto it = sub_factories_.find(*fallback_source);