Fix crash on exit
This commit is contained in:
parent
d85b58fdb5
commit
b2b2d8d9a4
2 changed files with 2 additions and 1 deletions
|
@ -81,6 +81,7 @@ bool AtomURLRequestJobFactory::HasProtocolHandler(
|
||||||
void AtomURLRequestJobFactory::Clear() {
|
void AtomURLRequestJobFactory::Clear() {
|
||||||
for (auto& it : protocol_handler_map_)
|
for (auto& it : protocol_handler_map_)
|
||||||
delete it.second;
|
delete it.second;
|
||||||
|
protocol_handler_map_.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
net::URLRequestJob* AtomURLRequestJobFactory::MaybeCreateJobWithProtocolHandler(
|
net::URLRequestJob* AtomURLRequestJobFactory::MaybeCreateJobWithProtocolHandler(
|
||||||
|
|
|
@ -69,7 +69,7 @@
|
||||||
auto cert_db = net::CertDatabase::GetInstance();
|
auto cert_db = net::CertDatabase::GetInstance();
|
||||||
// This forces Chromium to reload the certificate since it might be trusted
|
// This forces Chromium to reload the certificate since it might be trusted
|
||||||
// now.
|
// now.
|
||||||
cert_db->NotifyObserversCertDBChanged(cert_.get());
|
cert_db->NotifyObserversCertDBChanged();
|
||||||
|
|
||||||
callback_.Run();
|
callback_.Run();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue