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

Unified Diff: chrome/browser/profiles/profile_io_data.cc

Issue 112533002: Add ClientCertStoreChromeOS which only returns the certs for a given user. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 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 | « no previous file | crypto/nss_util.h » ('j') | net/cert/nss_profile_filter_chromeos.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/profile_io_data.cc
diff --git a/chrome/browser/profiles/profile_io_data.cc b/chrome/browser/profiles/profile_io_data.cc
index 0bd06e0de548ac04e9286051c147256d9875bb17..3daa3eb1c998098af6a1fb68ac578bd58ba9fd5f 100644
--- a/chrome/browser/profiles/profile_io_data.cc
+++ b/chrome/browser/profiles/profile_io_data.cc
@@ -100,6 +100,7 @@
#include "chromeos/settings/cros_settings_names.h"
#include "crypto/nss_util.h"
#include "crypto/nss_util_internal.h"
+#include "net/ssl/client_cert_store_chromeos.h"
#endif // defined(OS_CHROMEOS)
#if defined(USE_NSS)
@@ -839,7 +840,12 @@ net::URLRequestContext* ProfileIOData::ResourceContext::GetRequestContext() {
scoped_ptr<net::ClientCertStore>
ProfileIOData::ResourceContext::CreateClientCertStore() {
-#if defined(USE_NSS)
+#if defined(OS_CHROMEOS)
+ return scoped_ptr<net::ClientCertStore>(new net::ClientCertStoreChromeOS(
+ io_data_->username_hash(),
+ base::Bind(&CreateCryptoModuleBlockingPasswordDelegate,
+ chrome::kCryptoModulePasswordClientAuth)));
+#elif defined(USE_NSS)
return scoped_ptr<net::ClientCertStore>(new net::ClientCertStoreNSS(
base::Bind(&CreateCryptoModuleBlockingPasswordDelegate,
chrome::kCryptoModulePasswordClientAuth)));
« no previous file with comments | « no previous file | crypto/nss_util.h » ('j') | net/cert/nss_profile_filter_chromeos.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698