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

Unified Diff: chrome/browser/chromeos/net/client_cert_filter_chromeos.cc

Issue 773003004: Re-revert of "Remove SSLClientAuthHandler's RDH dependency." (https://codereview.chromium.org/59687… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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
« no previous file with comments | « chrome/browser/chrome_content_browser_client.cc ('k') | chrome/browser/ssl/ssl_client_auth_observer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/net/client_cert_filter_chromeos.cc
diff --git a/chrome/browser/chromeos/net/client_cert_filter_chromeos.cc b/chrome/browser/chromeos/net/client_cert_filter_chromeos.cc
index 1ff3a786138bd9f7011319eea968f24908b6c16c..6f735b8f17eb9dcacbd3c75269e7620d00c61751 100644
--- a/chrome/browser/chromeos/net/client_cert_filter_chromeos.cc
+++ b/chrome/browser/chromeos/net/client_cert_filter_chromeos.cc
@@ -26,7 +26,6 @@ bool ClientCertFilterChromeOS::Init(const base::Closure& callback) {
DCHECK(!init_called_);
init_called_ = true;
- init_callback_ = callback;
if (use_system_slot_) {
system_slot_ = crypto::GetSystemNSSKeySlot(
base::Bind(&ClientCertFilterChromeOS::GotSystemSlot,
@@ -38,7 +37,11 @@ bool ClientCertFilterChromeOS::Init(const base::Closure& callback) {
weak_ptr_factory_.GetWeakPtr())).Pass();
// Do not call back if we initialized synchronously.
- return InitIfSlotsAvailable();
+ if (InitIfSlotsAvailable())
+ return true;
+
+ init_callback_ = callback;
+ return false;
}
bool ClientCertFilterChromeOS::IsCertAllowed(
« no previous file with comments | « chrome/browser/chrome_content_browser_client.cc ('k') | chrome/browser/ssl/ssl_client_auth_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698