Adapt to changes of Chrome 51 API changes
This commit is contained in:
parent
e7be3d0ef9
commit
851ef398fb
39 changed files with 157 additions and 196 deletions
|
@ -64,16 +64,16 @@ class BrowserContext::ResourceContext : public content::ResourceContext {
|
|||
return getter_->GetURLRequestContext();
|
||||
}
|
||||
|
||||
scoped_ptr<net::ClientCertStore> CreateClientCertStore() override {
|
||||
std::unique_ptr<net::ClientCertStore> CreateClientCertStore() override {
|
||||
#if defined(USE_NSS_CERTS)
|
||||
return scoped_ptr<net::ClientCertStore>(new net::ClientCertStoreNSS(
|
||||
return std::unique_ptr<net::ClientCertStore>(new net::ClientCertStoreNSS(
|
||||
net::ClientCertStoreNSS::PasswordDelegateFactory()));
|
||||
#elif defined(OS_WIN)
|
||||
return scoped_ptr<net::ClientCertStore>(new net::ClientCertStoreWin());
|
||||
return std::unique_ptr<net::ClientCertStore>(new net::ClientCertStoreWin());
|
||||
#elif defined(OS_MACOSX)
|
||||
return scoped_ptr<net::ClientCertStore>(new net::ClientCertStoreMac());
|
||||
return std::unique_ptr<net::ClientCertStore>(new net::ClientCertStoreMac());
|
||||
#elif defined(USE_OPENSSL)
|
||||
return scoped_ptr<net::ClientCertStore>();
|
||||
return std::unique_ptr<net::ClientCertStore>();
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -137,14 +137,13 @@ void BrowserContext::RegisterInternalPrefs(PrefRegistrySimple* registry) {
|
|||
}
|
||||
|
||||
net::URLRequestContextGetter* BrowserContext::CreateRequestContext(
|
||||
NetLog* net_log,
|
||||
content::ProtocolHandlerMap* protocol_handlers,
|
||||
content::URLRequestInterceptorScopedVector protocol_interceptors) {
|
||||
DCHECK(!url_request_getter_.get());
|
||||
url_request_getter_ = new URLRequestContextGetter(
|
||||
this,
|
||||
network_controller_handle(),
|
||||
net_log,
|
||||
net_log_,
|
||||
GetPath(),
|
||||
in_memory_,
|
||||
BrowserThread::UnsafeGetMessageLoopForThread(BrowserThread::IO),
|
||||
|
@ -163,9 +162,9 @@ base::FilePath BrowserContext::GetPath() const {
|
|||
return path_;
|
||||
}
|
||||
|
||||
scoped_ptr<content::ZoomLevelDelegate> BrowserContext::CreateZoomLevelDelegate(
|
||||
std::unique_ptr<content::ZoomLevelDelegate> BrowserContext::CreateZoomLevelDelegate(
|
||||
const base::FilePath& partition_path) {
|
||||
return scoped_ptr<content::ZoomLevelDelegate>();
|
||||
return std::unique_ptr<content::ZoomLevelDelegate>();
|
||||
}
|
||||
|
||||
bool BrowserContext::IsOffTheRecord() const {
|
||||
|
@ -176,11 +175,6 @@ net::URLRequestContextGetter* BrowserContext::GetRequestContext() {
|
|||
return GetDefaultStoragePartition(this)->GetURLRequestContext();
|
||||
}
|
||||
|
||||
net::URLRequestContextGetter* BrowserContext::GetRequestContextForRenderProcess(
|
||||
int renderer_child_id) {
|
||||
return GetRequestContext();
|
||||
}
|
||||
|
||||
net::URLRequestContextGetter* BrowserContext::GetMediaRequestContext() {
|
||||
return GetRequestContext();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue