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

Side by Side Diff: chrome/browser/profiles/off_the_record_profile_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/off_the_record_profile_io_data.h" 5 #include "chrome/browser/profiles/off_the_record_profile_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/prefs/pref_service.h" 10 #include "base/prefs/pref_service.h"
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 scoped_ptr<net::URLRequestJobFactoryImpl> extensions_job_factory( 263 scoped_ptr<net::URLRequestJobFactoryImpl> extensions_job_factory(
264 new net::URLRequestJobFactoryImpl()); 264 new net::URLRequestJobFactoryImpl());
265 // TODO(shalev): The extensions_job_factory has a NULL NetworkDelegate. 265 // TODO(shalev): The extensions_job_factory has a NULL NetworkDelegate.
266 // Without a network_delegate, this protocol handler will never 266 // Without a network_delegate, this protocol handler will never
267 // handle file: requests, but as a side effect it makes 267 // handle file: requests, but as a side effect it makes
268 // job_factory::IsHandledProtocol return true, which prevents attempts to 268 // job_factory::IsHandledProtocol return true, which prevents attempts to
269 // handle the protocol externally. We pass NULL in to 269 // handle the protocol externally. We pass NULL in to
270 // SetUpJobFactoryDefaults() to get this effect. 270 // SetUpJobFactoryDefaults() to get this effect.
271 extensions_job_factory_ = SetUpJobFactoryDefaults( 271 extensions_job_factory_ = SetUpJobFactoryDefaults(
272 extensions_job_factory.Pass(), 272 extensions_job_factory.Pass(),
273 scoped_ptr<ProtocolHandlerRegistry::JobInterceptorFactory>(NULL), 273 scoped_ptr<ProtocolHandlerRegistry::JobInterceptorFactory>(),
274 NULL, 274 NULL,
275 ftp_factory_.get()); 275 ftp_factory_.get());
276 extensions_context->set_job_factory(extensions_job_factory_.get()); 276 extensions_context->set_job_factory(extensions_job_factory_.get());
277 } 277 }
278 278
279 ChromeURLRequestContext* 279 ChromeURLRequestContext*
280 OffTheRecordProfileIOData::InitializeAppRequestContext( 280 OffTheRecordProfileIOData::InitializeAppRequestContext(
281 ChromeURLRequestContext* main_context, 281 ChromeURLRequestContext* main_context,
282 const StoragePartitionDescriptor& partition_descriptor, 282 const StoragePartitionDescriptor& partition_descriptor,
283 scoped_ptr<ProtocolHandlerRegistry::JobInterceptorFactory> 283 scoped_ptr<ProtocolHandlerRegistry::JobInterceptorFactory>
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 ChromeURLRequestContext* app_context, 350 ChromeURLRequestContext* app_context,
351 const StoragePartitionDescriptor& partition_descriptor) const { 351 const StoragePartitionDescriptor& partition_descriptor) const {
352 NOTREACHED(); 352 NOTREACHED();
353 return NULL; 353 return NULL;
354 } 354 }
355 355
356 chrome_browser_net::LoadTimeStats* OffTheRecordProfileIOData::GetLoadTimeStats( 356 chrome_browser_net::LoadTimeStats* OffTheRecordProfileIOData::GetLoadTimeStats(
357 IOThread::Globals* io_thread_globals) const { 357 IOThread::Globals* io_thread_globals) const {
358 return NULL; 358 return NULL;
359 } 359 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698