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

Side by Side Diff: chrome/browser/profiles/profile_io_data.cc

Issue 663583006: Remove nss_util dependency from ClientCertStoreChromeOS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed typo. Created 6 years, 1 month 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/profiles/profile_io_data.h" 5 #include "chrome/browser/profiles/profile_io_data.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 #if defined(OS_ANDROID) 111 #if defined(OS_ANDROID)
112 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.h" 112 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.h"
113 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings_fact ory.h" 113 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings_fact ory.h"
114 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_switc hes.h" 114 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_switc hes.h"
115 #endif // defined(OS_ANDROID) 115 #endif // defined(OS_ANDROID)
116 116
117 #if defined(OS_CHROMEOS) 117 #if defined(OS_CHROMEOS)
118 #include "chrome/browser/chromeos/fileapi/external_file_protocol_handler.h" 118 #include "chrome/browser/chromeos/fileapi/external_file_protocol_handler.h"
119 #include "chrome/browser/chromeos/login/startup_utils.h" 119 #include "chrome/browser/chromeos/login/startup_utils.h"
120 #include "chrome/browser/chromeos/net/cert_verify_proc_chromeos.h" 120 #include "chrome/browser/chromeos/net/cert_verify_proc_chromeos.h"
121 #include "chrome/browser/chromeos/net/client_cert_filter_chromeos.h"
121 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h" 122 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h"
122 #include "chrome/browser/chromeos/policy/policy_cert_service.h" 123 #include "chrome/browser/chromeos/policy/policy_cert_service.h"
123 #include "chrome/browser/chromeos/policy/policy_cert_service_factory.h" 124 #include "chrome/browser/chromeos/policy/policy_cert_service_factory.h"
124 #include "chrome/browser/chromeos/policy/policy_cert_verifier.h" 125 #include "chrome/browser/chromeos/policy/policy_cert_verifier.h"
125 #include "chrome/browser/chromeos/profiles/profile_helper.h" 126 #include "chrome/browser/chromeos/profiles/profile_helper.h"
126 #include "chrome/browser/chromeos/settings/cros_settings.h" 127 #include "chrome/browser/chromeos/settings/cros_settings.h"
127 #include "chrome/browser/net/nss_context.h" 128 #include "chrome/browser/net/nss_context.h"
128 #include "chromeos/dbus/cryptohome_client.h" 129 #include "chromeos/dbus/cryptohome_client.h"
129 #include "chromeos/dbus/dbus_thread_manager.h" 130 #include "chromeos/dbus/dbus_thread_manager.h"
130 #include "chromeos/settings/cros_settings_names.h" 131 #include "chromeos/settings/cros_settings_names.h"
(...skipping 777 matching lines...) Expand 10 before | Expand all | Expand 10 after
908 DCHECK(io_data_->initialized_); 909 DCHECK(io_data_->initialized_);
909 return request_context_; 910 return request_context_;
910 } 911 }
911 912
912 scoped_ptr<net::ClientCertStore> 913 scoped_ptr<net::ClientCertStore>
913 ProfileIOData::ResourceContext::CreateClientCertStore() { 914 ProfileIOData::ResourceContext::CreateClientCertStore() {
914 if (!io_data_->client_cert_store_factory_.is_null()) 915 if (!io_data_->client_cert_store_factory_.is_null())
915 return io_data_->client_cert_store_factory_.Run(); 916 return io_data_->client_cert_store_factory_.Run();
916 #if defined(OS_CHROMEOS) 917 #if defined(OS_CHROMEOS)
917 return scoped_ptr<net::ClientCertStore>(new net::ClientCertStoreChromeOS( 918 return scoped_ptr<net::ClientCertStore>(new net::ClientCertStoreChromeOS(
918 io_data_->use_system_key_slot(), 919 make_scoped_ptr(new chromeos::ClientCertFilterChromeOS(
919 io_data_->username_hash(), 920 io_data_->use_system_key_slot(), io_data_->username_hash())),
920 base::Bind(&CreateCryptoModuleBlockingPasswordDelegate, 921 base::Bind(&CreateCryptoModuleBlockingPasswordDelegate,
921 chrome::kCryptoModulePasswordClientAuth))); 922 chrome::kCryptoModulePasswordClientAuth)));
922 #elif defined(USE_NSS) 923 #elif defined(USE_NSS)
923 return scoped_ptr<net::ClientCertStore>(new net::ClientCertStoreNSS( 924 return scoped_ptr<net::ClientCertStore>(new net::ClientCertStoreNSS(
924 base::Bind(&CreateCryptoModuleBlockingPasswordDelegate, 925 base::Bind(&CreateCryptoModuleBlockingPasswordDelegate,
925 chrome::kCryptoModulePasswordClientAuth))); 926 chrome::kCryptoModulePasswordClientAuth)));
926 #elif defined(OS_WIN) 927 #elif defined(OS_WIN)
927 return scoped_ptr<net::ClientCertStore>(new net::ClientCertStoreWin()); 928 return scoped_ptr<net::ClientCertStore>(new net::ClientCertStoreWin());
928 #elif defined(OS_MACOSX) 929 #elif defined(OS_MACOSX)
929 return scoped_ptr<net::ClientCertStore>(new net::ClientCertStoreMac()); 930 return scoped_ptr<net::ClientCertStore>(new net::ClientCertStoreMac());
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after
1287 void ProfileIOData::SetCookieSettingsForTesting( 1288 void ProfileIOData::SetCookieSettingsForTesting(
1288 CookieSettings* cookie_settings) { 1289 CookieSettings* cookie_settings) {
1289 DCHECK(!cookie_settings_.get()); 1290 DCHECK(!cookie_settings_.get());
1290 cookie_settings_ = cookie_settings; 1291 cookie_settings_ = cookie_settings;
1291 } 1292 }
1292 1293
1293 void ProfileIOData::set_signin_names_for_testing( 1294 void ProfileIOData::set_signin_names_for_testing(
1294 SigninNamesOnIOThread* signin_names) { 1295 SigninNamesOnIOThread* signin_names) {
1295 signin_names_.reset(signin_names); 1296 signin_names_.reset(signin_names);
1296 } 1297 }
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/net/client_cert_filter_chromeos.cc ('k') | chrome/chrome_browser_chromeos.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698