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

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

Issue 271533004: Turning on MultiProfile by default for ChromeOS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 unified diff | Download patch | Annotate | Revision Log
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 972 matching lines...) Expand 10 before | Expand all | Expand 10 after
983 resource_context_->host_resolver_ = io_thread_globals->host_resolver.get(); 983 resource_context_->host_resolver_ = io_thread_globals->host_resolver.get();
984 resource_context_->request_context_ = main_request_context_.get(); 984 resource_context_->request_context_ = main_request_context_.get();
985 985
986 #if defined(ENABLE_MANAGED_USERS) 986 #if defined(ENABLE_MANAGED_USERS)
987 managed_mode_url_filter_ = profile_params_->managed_mode_url_filter; 987 managed_mode_url_filter_ = profile_params_->managed_mode_url_filter;
988 #endif 988 #endif
989 989
990 #if defined(OS_CHROMEOS) 990 #if defined(OS_CHROMEOS)
991 username_hash_ = profile_params_->username_hash; 991 username_hash_ = profile_params_->username_hash;
992 scoped_refptr<net::CertVerifyProc> verify_proc; 992 scoped_refptr<net::CertVerifyProc> verify_proc;
993 if (chromeos::UserManager::IsMultipleProfilesAllowed()) { 993 crypto::ScopedPK11Slot public_slot =
994 crypto::ScopedPK11Slot public_slot = 994 crypto::GetPublicSlotForChromeOSUser(username_hash_);
995 crypto::GetPublicSlotForChromeOSUser(username_hash_); 995 // The private slot won't be ready by this point. It shouldn't be necessary
996 // The private slot won't be ready by this point. It shouldn't be necessary 996 // for cert trust purposes anyway.
997 // for cert trust purposes anyway. 997 verify_proc = new chromeos::CertVerifyProcChromeOS(public_slot.Pass());
998 verify_proc = new chromeos::CertVerifyProcChromeOS(public_slot.Pass());
999 } else {
1000 verify_proc = net::CertVerifyProc::CreateDefault();
1001 }
1002 if (cert_verifier_) { 998 if (cert_verifier_) {
1003 cert_verifier_->InitializeOnIOThread(verify_proc); 999 cert_verifier_->InitializeOnIOThread(verify_proc);
1004 main_request_context_->set_cert_verifier(cert_verifier_.get()); 1000 main_request_context_->set_cert_verifier(cert_verifier_.get());
1005 } else { 1001 } else {
1006 main_request_context_->set_cert_verifier( 1002 main_request_context_->set_cert_verifier(
1007 new net::MultiThreadedCertVerifier(verify_proc.get())); 1003 new net::MultiThreadedCertVerifier(verify_proc.get()));
1008 } 1004 }
1009 #else 1005 #else
1010 main_request_context_->set_cert_verifier( 1006 main_request_context_->set_cert_verifier(
1011 io_thread_globals->cert_verifier.get()); 1007 io_thread_globals->cert_verifier.get());
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
1173 void ProfileIOData::SetCookieSettingsForTesting( 1169 void ProfileIOData::SetCookieSettingsForTesting(
1174 CookieSettings* cookie_settings) { 1170 CookieSettings* cookie_settings) {
1175 DCHECK(!cookie_settings_.get()); 1171 DCHECK(!cookie_settings_.get());
1176 cookie_settings_ = cookie_settings; 1172 cookie_settings_ = cookie_settings;
1177 } 1173 }
1178 1174
1179 void ProfileIOData::set_signin_names_for_testing( 1175 void ProfileIOData::set_signin_names_for_testing(
1180 SigninNamesOnIOThread* signin_names) { 1176 SigninNamesOnIOThread* signin_names) {
1181 signin_names_.reset(signin_names); 1177 signin_names_.reset(signin_names);
1182 } 1178 }
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_browsertest.cc ('k') | chrome/browser/profiles/profile_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698