Fix crash on exit

This commit is contained in:
Cheng Zhao 2017-04-13 20:34:47 +09:00
parent d85b58fdb5
commit b2b2d8d9a4
2 changed files with 2 additions and 1 deletions

View file

@ -81,6 +81,7 @@ bool AtomURLRequestJobFactory::HasProtocolHandler(
void AtomURLRequestJobFactory::Clear() {
for (auto& it : protocol_handler_map_)
delete it.second;
protocol_handler_map_.clear();
}
net::URLRequestJob* AtomURLRequestJobFactory::MaybeCreateJobWithProtocolHandler(

View file

@ -69,7 +69,7 @@
auto cert_db = net::CertDatabase::GetInstance();
// This forces Chromium to reload the certificate since it might be trusted
// now.
cert_db->NotifyObserversCertDBChanged(cert_.get());
cert_db->NotifyObserversCertDBChanged();
callback_.Run();