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

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

Issue 1356933002: make ProxyService::CreateSystemProxyConfigService return scoped_ptrs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: proper namespacing Created 5 years, 2 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
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 401 matching lines...) Expand 10 before | Expand all | Expand 10 after
412 params->protocol_handler_interceptor = 412 params->protocol_handler_interceptor =
413 protocol_handler_registry->CreateJobInterceptorFactory(); 413 protocol_handler_registry->CreateJobInterceptorFactory();
414 414
415 NewTabPageInterceptorService* new_tab_interceptor_service = 415 NewTabPageInterceptorService* new_tab_interceptor_service =
416 NewTabPageInterceptorServiceFactory::GetForProfile(profile); 416 NewTabPageInterceptorServiceFactory::GetForProfile(profile);
417 if (new_tab_interceptor_service) { 417 if (new_tab_interceptor_service) {
418 params->new_tab_page_interceptor = 418 params->new_tab_page_interceptor =
419 new_tab_interceptor_service->CreateInterceptor(); 419 new_tab_interceptor_service->CreateInterceptor();
420 } 420 }
421 421
422 params->proxy_config_service 422 params->proxy_config_service = ProxyServiceFactory::CreateProxyConfigService(
423 .reset(ProxyServiceFactory::CreateProxyConfigService( 423 profile->GetProxyConfigTracker());
424 profile->GetProxyConfigTracker()));
425 #if defined(ENABLE_SUPERVISED_USERS) 424 #if defined(ENABLE_SUPERVISED_USERS)
426 SupervisedUserService* supervised_user_service = 425 SupervisedUserService* supervised_user_service =
427 SupervisedUserServiceFactory::GetForProfile(profile); 426 SupervisedUserServiceFactory::GetForProfile(profile);
428 params->supervised_user_url_filter = 427 params->supervised_user_url_filter =
429 supervised_user_service->GetURLFilterForIOThread(); 428 supervised_user_service->GetURLFilterForIOThread();
430 #endif 429 #endif
431 #if defined(OS_CHROMEOS) 430 #if defined(OS_CHROMEOS)
432 user_manager::UserManager* user_manager = user_manager::UserManager::Get(); 431 user_manager::UserManager* user_manager = user_manager::UserManager::Get();
433 if (user_manager) { 432 if (user_manager) {
434 const user_manager::User* user = 433 const user_manager::User* user =
(...skipping 632 matching lines...) Expand 10 before | Expand all | Expand 10 after
1067 network_delegate->set_enable_do_not_track(&enable_do_not_track_); 1066 network_delegate->set_enable_do_not_track(&enable_do_not_track_);
1068 network_delegate->set_force_google_safe_search(&force_google_safesearch_); 1067 network_delegate->set_force_google_safe_search(&force_google_safesearch_);
1069 network_delegate->set_force_youtube_safety_mode(&force_youtube_safety_mode_); 1068 network_delegate->set_force_youtube_safety_mode(&force_youtube_safety_mode_);
1070 1069
1071 // NOTE: Proxy service uses the default io thread network delegate, not the 1070 // NOTE: Proxy service uses the default io thread network delegate, not the
1072 // delegate just created. 1071 // delegate just created.
1073 proxy_service_ = ProxyServiceFactory::CreateProxyService( 1072 proxy_service_ = ProxyServiceFactory::CreateProxyService(
1074 io_thread->net_log(), 1073 io_thread->net_log(),
1075 io_thread_globals->proxy_script_fetcher_context.get(), 1074 io_thread_globals->proxy_script_fetcher_context.get(),
1076 io_thread_globals->system_network_delegate.get(), 1075 io_thread_globals->system_network_delegate.get(),
1077 profile_params_->proxy_config_service.release(), command_line, 1076 profile_params_->proxy_config_service.Pass(), command_line,
1078 quick_check_enabled_.GetValue()); 1077 quick_check_enabled_.GetValue());
1079 transport_security_state_.reset(new net::TransportSecurityState()); 1078 transport_security_state_.reset(new net::TransportSecurityState());
1080 base::SequencedWorkerPool* pool = BrowserThread::GetBlockingPool(); 1079 base::SequencedWorkerPool* pool = BrowserThread::GetBlockingPool();
1081 transport_security_persister_.reset( 1080 transport_security_persister_.reset(
1082 new net::TransportSecurityPersister( 1081 new net::TransportSecurityPersister(
1083 transport_security_state_.get(), 1082 transport_security_state_.get(),
1084 profile_params_->path, 1083 profile_params_->path,
1085 pool->GetSequencedTaskRunnerWithShutdownBehavior( 1084 pool->GetSequencedTaskRunnerWithShutdownBehavior(
1086 pool->GetSequenceToken(), 1085 pool->GetSequenceToken(),
1087 base::SequencedWorkerPool::BLOCK_SHUTDOWN), 1086 base::SequencedWorkerPool::BLOCK_SHUTDOWN),
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
1335 new DevToolsNetworkTransactionFactory( 1334 new DevToolsNetworkTransactionFactory(
1336 network_controller_handle_.GetController(), shared_session), 1335 network_controller_handle_.GetController(), shared_session),
1337 shared_session->net_log(), backend)); 1336 shared_session->net_log(), backend));
1338 } 1337 }
1339 1338
1340 void ProfileIOData::SetCookieSettingsForTesting( 1339 void ProfileIOData::SetCookieSettingsForTesting(
1341 content_settings::CookieSettings* cookie_settings) { 1340 content_settings::CookieSettings* cookie_settings) {
1342 DCHECK(!cookie_settings_.get()); 1341 DCHECK(!cookie_settings_.get());
1343 cookie_settings_ = cookie_settings; 1342 cookie_settings_ = cookie_settings;
1344 } 1343 }
OLDNEW
« no previous file with comments | « chrome/browser/net/proxy_service_factory.cc ('k') | chrome/service/net/service_url_request_context_getter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698