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

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

Issue 16703018: Rewrite scoped_ptr<T>(NULL) to use the default ctor in chrome/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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_impl_io_data.h" 5 #include "chrome/browser/profiles/profile_impl_io_data.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/metrics/field_trial.h" 10 #include "base/metrics/field_trial.h"
(...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after
492 scoped_ptr<net::URLRequestJobFactoryImpl> extensions_job_factory( 492 scoped_ptr<net::URLRequestJobFactoryImpl> extensions_job_factory(
493 new net::URLRequestJobFactoryImpl()); 493 new net::URLRequestJobFactoryImpl());
494 // TODO(shalev): The extensions_job_factory has a NULL NetworkDelegate. 494 // TODO(shalev): The extensions_job_factory has a NULL NetworkDelegate.
495 // Without a network_delegate, this protocol handler will never 495 // Without a network_delegate, this protocol handler will never
496 // handle file: requests, but as a side effect it makes 496 // handle file: requests, but as a side effect it makes
497 // job_factory::IsHandledProtocol return true, which prevents attempts to 497 // job_factory::IsHandledProtocol return true, which prevents attempts to
498 // handle the protocol externally. We pass NULL in to 498 // handle the protocol externally. We pass NULL in to
499 // SetUpJobFactory() to get this effect. 499 // SetUpJobFactory() to get this effect.
500 extensions_job_factory_ = SetUpJobFactoryDefaults( 500 extensions_job_factory_ = SetUpJobFactoryDefaults(
501 extensions_job_factory.Pass(), 501 extensions_job_factory.Pass(),
502 scoped_ptr<ProtocolHandlerRegistry::JobInterceptorFactory>(NULL), 502 scoped_ptr<ProtocolHandlerRegistry::JobInterceptorFactory>(),
503 NULL, 503 NULL,
504 ftp_factory_.get()); 504 ftp_factory_.get());
505 extensions_context->set_job_factory(extensions_job_factory_.get()); 505 extensions_context->set_job_factory(extensions_job_factory_.get());
506 } 506 }
507 507
508 ChromeURLRequestContext* 508 ChromeURLRequestContext*
509 ProfileImplIOData::InitializeAppRequestContext( 509 ProfileImplIOData::InitializeAppRequestContext(
510 ChromeURLRequestContext* main_context, 510 ChromeURLRequestContext* main_context,
511 const StoragePartitionDescriptor& partition_descriptor, 511 const StoragePartitionDescriptor& partition_descriptor,
512 scoped_ptr<ProtocolHandlerRegistry::JobInterceptorFactory> 512 scoped_ptr<ProtocolHandlerRegistry::JobInterceptorFactory>
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
693 const base::Closure& completion) { 693 const base::Closure& completion) {
694 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); 694 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
695 DCHECK(initialized()); 695 DCHECK(initialized());
696 696
697 DCHECK(transport_security_state()); 697 DCHECK(transport_security_state());
698 // Completes synchronously. 698 // Completes synchronously.
699 transport_security_state()->DeleteAllDynamicDataSince(time); 699 transport_security_state()->DeleteAllDynamicDataSince(time);
700 DCHECK(http_server_properties_manager_); 700 DCHECK(http_server_properties_manager_);
701 http_server_properties_manager_->Clear(completion); 701 http_server_properties_manager_->Clear(completion);
702 } 702 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698