Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1111)

Unified Diff: chrome/browser/chromeos/certificate_provider/sign_requests.cc

Issue 1330003002: CertificateProviderService: Expose certificate lookup. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@scoped_ptr_map
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/certificate_provider/sign_requests.cc
diff --git a/chrome/browser/chromeos/certificate_provider/sign_requests.cc b/chrome/browser/chromeos/certificate_provider/sign_requests.cc
index a5e094ae7071a25d8f88a804e1a1be13dfeb5388..092077c95e3c3204cc88e3402a40252c02b3ada5 100644
--- a/chrome/browser/chromeos/certificate_provider/sign_requests.cc
+++ b/chrome/browser/chromeos/certificate_provider/sign_requests.cc
@@ -35,7 +35,8 @@ bool SignRequests::RemoveRequest(const std::string& extension_id,
if (it == pending.end())
return false;
- *callback = it->second;
+ if (callback)
+ *callback = it->second;
pending.erase(it);
return true;
}

Powered by Google App Engine
This is Rietveld 408576698