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

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

Issue 124113003: Remove calls of PrerenderTracker::TryCancel and TryCancelOnIOThread in ChromeResourceDispatcherHost… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: simplify Created 6 years, 11 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 834 matching lines...) Expand 10 before | Expand all | Expand 10 after
845 } 845 }
846 846
847 net::URLRequestContext* ProfileIOData::ResourceContext::GetRequestContext() { 847 net::URLRequestContext* ProfileIOData::ResourceContext::GetRequestContext() {
848 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); 848 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
849 DCHECK(io_data_->initialized_); 849 DCHECK(io_data_->initialized_);
850 return request_context_; 850 return request_context_;
851 } 851 }
852 852
853 scoped_ptr<net::ClientCertStore> 853 scoped_ptr<net::ClientCertStore>
854 ProfileIOData::ResourceContext::CreateClientCertStore() { 854 ProfileIOData::ResourceContext::CreateClientCertStore() {
855 if (!io_data_->client_cert_store_factory_.is_null())
856 return io_data_->client_cert_store_factory_.Run();
855 #if defined(OS_CHROMEOS) 857 #if defined(OS_CHROMEOS)
856 return scoped_ptr<net::ClientCertStore>(new net::ClientCertStoreChromeOS( 858 return scoped_ptr<net::ClientCertStore>(new net::ClientCertStoreChromeOS(
857 io_data_->username_hash(), 859 io_data_->username_hash(),
858 base::Bind(&CreateCryptoModuleBlockingPasswordDelegate, 860 base::Bind(&CreateCryptoModuleBlockingPasswordDelegate,
859 chrome::kCryptoModulePasswordClientAuth))); 861 chrome::kCryptoModulePasswordClientAuth)));
860 #elif defined(USE_NSS) 862 #elif defined(USE_NSS)
861 return scoped_ptr<net::ClientCertStore>(new net::ClientCertStoreNSS( 863 return scoped_ptr<net::ClientCertStore>(new net::ClientCertStoreNSS(
862 base::Bind(&CreateCryptoModuleBlockingPasswordDelegate, 864 base::Bind(&CreateCryptoModuleBlockingPasswordDelegate,
863 chrome::kCryptoModulePasswordClientAuth))); 865 chrome::kCryptoModulePasswordClientAuth)));
864 #elif defined(OS_WIN) 866 #elif defined(OS_WIN)
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
1177 void ProfileIOData::SetCookieSettingsForTesting( 1179 void ProfileIOData::SetCookieSettingsForTesting(
1178 CookieSettings* cookie_settings) { 1180 CookieSettings* cookie_settings) {
1179 DCHECK(!cookie_settings_.get()); 1181 DCHECK(!cookie_settings_.get());
1180 cookie_settings_ = cookie_settings; 1182 cookie_settings_ = cookie_settings;
1181 } 1183 }
1182 1184
1183 void ProfileIOData::set_signin_names_for_testing( 1185 void ProfileIOData::set_signin_names_for_testing(
1184 SigninNamesOnIOThread* signin_names) { 1186 SigninNamesOnIOThread* signin_names) {
1185 signin_names_.reset(signin_names); 1187 signin_names_.reset(signin_names);
1186 } 1188 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698