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

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

Issue 399593003: One more round of extensions code ifdefing in profiles code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 4 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 14 matching lines...) Expand all
25 #include "chrome/browser/chrome_notification_types.h" 25 #include "chrome/browser/chrome_notification_types.h"
26 #include "chrome/browser/content_settings/content_settings_provider.h" 26 #include "chrome/browser/content_settings/content_settings_provider.h"
27 #include "chrome/browser/content_settings/cookie_settings.h" 27 #include "chrome/browser/content_settings/cookie_settings.h"
28 #include "chrome/browser/content_settings/host_content_settings_map.h" 28 #include "chrome/browser/content_settings/host_content_settings_map.h"
29 #include "chrome/browser/custom_handlers/protocol_handler_registry.h" 29 #include "chrome/browser/custom_handlers/protocol_handler_registry.h"
30 #include "chrome/browser/custom_handlers/protocol_handler_registry_factory.h" 30 #include "chrome/browser/custom_handlers/protocol_handler_registry_factory.h"
31 #include "chrome/browser/devtools/devtools_network_controller.h" 31 #include "chrome/browser/devtools/devtools_network_controller.h"
32 #include "chrome/browser/devtools/devtools_network_transaction_factory.h" 32 #include "chrome/browser/devtools/devtools_network_transaction_factory.h"
33 #include "chrome/browser/download/download_service.h" 33 #include "chrome/browser/download/download_service.h"
34 #include "chrome/browser/download/download_service_factory.h" 34 #include "chrome/browser/download/download_service_factory.h"
35 #include "chrome/browser/extensions/extension_resource_protocols.h"
36 #include "chrome/browser/io_thread.h" 35 #include "chrome/browser/io_thread.h"
37 #include "chrome/browser/media/media_device_id_salt.h" 36 #include "chrome/browser/media/media_device_id_salt.h"
38 #include "chrome/browser/net/about_protocol_handler.h" 37 #include "chrome/browser/net/about_protocol_handler.h"
39 #include "chrome/browser/net/chrome_fraudulent_certificate_reporter.h" 38 #include "chrome/browser/net/chrome_fraudulent_certificate_reporter.h"
40 #include "chrome/browser/net/chrome_http_user_agent_settings.h" 39 #include "chrome/browser/net/chrome_http_user_agent_settings.h"
41 #include "chrome/browser/net/chrome_net_log.h" 40 #include "chrome/browser/net/chrome_net_log.h"
42 #include "chrome/browser/net/chrome_network_delegate.h" 41 #include "chrome/browser/net/chrome_network_delegate.h"
43 #include "chrome/browser/net/cookie_store_util.h" 42 #include "chrome/browser/net/cookie_store_util.h"
44 #include "chrome/browser/net/proxy_service_factory.h" 43 #include "chrome/browser/net/proxy_service_factory.h"
45 #include "chrome/browser/profiles/profile.h" 44 #include "chrome/browser/profiles/profile.h"
46 #include "chrome/browser/profiles/profile_manager.h" 45 #include "chrome/browser/profiles/profile_manager.h"
47 #include "chrome/browser/signin/signin_names_io_thread.h" 46 #include "chrome/browser/signin/signin_names_io_thread.h"
48 #include "chrome/common/chrome_paths.h" 47 #include "chrome/common/chrome_paths.h"
49 #include "chrome/common/chrome_switches.h" 48 #include "chrome/common/chrome_switches.h"
50 #include "chrome/common/pref_names.h" 49 #include "chrome/common/pref_names.h"
51 #include "chrome/common/url_constants.h" 50 #include "chrome/common/url_constants.h"
52 #include "components/startup_metric_utils/startup_metric_utils.h" 51 #include "components/startup_metric_utils/startup_metric_utils.h"
53 #include "components/sync_driver/pref_names.h" 52 #include "components/sync_driver/pref_names.h"
54 #include "components/url_fixer/url_fixer.h" 53 #include "components/url_fixer/url_fixer.h"
55 #include "content/public/browser/browser_thread.h" 54 #include "content/public/browser/browser_thread.h"
56 #include "content/public/browser/host_zoom_map.h" 55 #include "content/public/browser/host_zoom_map.h"
57 #include "content/public/browser/notification_service.h" 56 #include "content/public/browser/notification_service.h"
58 #include "content/public/browser/resource_context.h" 57 #include "content/public/browser/resource_context.h"
59 #include "extensions/browser/extension_protocols.h"
60 #include "extensions/browser/extension_system.h"
61 #include "extensions/browser/info_map.h"
62 #include "extensions/common/constants.h"
63 #include "net/base/keygen_handler.h" 58 #include "net/base/keygen_handler.h"
64 #include "net/cookies/canonical_cookie.h" 59 #include "net/cookies/canonical_cookie.h"
65 #include "net/http/http_transaction_factory.h" 60 #include "net/http/http_transaction_factory.h"
66 #include "net/http/http_util.h" 61 #include "net/http/http_util.h"
67 #include "net/http/transport_security_persister.h" 62 #include "net/http/transport_security_persister.h"
68 #include "net/proxy/proxy_config_service_fixed.h" 63 #include "net/proxy/proxy_config_service_fixed.h"
69 #include "net/proxy/proxy_script_fetcher_impl.h" 64 #include "net/proxy/proxy_script_fetcher_impl.h"
70 #include "net/proxy/proxy_service.h" 65 #include "net/proxy/proxy_service.h"
71 #include "net/ssl/channel_id_service.h" 66 #include "net/ssl/channel_id_service.h"
72 #include "net/ssl/client_cert_store.h" 67 #include "net/ssl/client_cert_store.h"
73 #include "net/url_request/data_protocol_handler.h" 68 #include "net/url_request/data_protocol_handler.h"
74 #include "net/url_request/file_protocol_handler.h" 69 #include "net/url_request/file_protocol_handler.h"
75 #include "net/url_request/ftp_protocol_handler.h" 70 #include "net/url_request/ftp_protocol_handler.h"
76 #include "net/url_request/url_request.h" 71 #include "net/url_request/url_request.h"
77 #include "net/url_request/url_request_file_job.h" 72 #include "net/url_request/url_request_file_job.h"
78 #include "net/url_request/url_request_intercepting_job_factory.h" 73 #include "net/url_request/url_request_intercepting_job_factory.h"
79 #include "net/url_request/url_request_interceptor.h" 74 #include "net/url_request/url_request_interceptor.h"
80 #include "net/url_request/url_request_job_factory_impl.h" 75 #include "net/url_request/url_request_job_factory_impl.h"
81 76
82 #if defined(ENABLE_CONFIGURATION_POLICY) 77 #if defined(ENABLE_CONFIGURATION_POLICY)
83 #include "chrome/browser/policy/cloud/policy_header_service_factory.h" 78 #include "chrome/browser/policy/cloud/policy_header_service_factory.h"
84 #include "chrome/browser/policy/policy_helpers.h" 79 #include "chrome/browser/policy/policy_helpers.h"
85 #include "components/policy/core/browser/url_blacklist_manager.h" 80 #include "components/policy/core/browser/url_blacklist_manager.h"
86 #include "components/policy/core/common/cloud/policy_header_io_helper.h" 81 #include "components/policy/core/common/cloud/policy_header_io_helper.h"
87 #include "components/policy/core/common/cloud/policy_header_service.h" 82 #include "components/policy/core/common/cloud/policy_header_service.h"
88 #include "components/policy/core/common/cloud/user_cloud_policy_manager.h" 83 #include "components/policy/core/common/cloud/user_cloud_policy_manager.h"
89 #endif 84 #endif
90 85
86 #if defined(ENABLE_EXTENSIONS)
87 #include "chrome/browser/extensions/extension_resource_protocols.h"
88 #include "extensions/browser/extension_protocols.h"
89 #include "extensions/browser/extension_system.h"
90 #include "extensions/browser/info_map.h"
91 #include "extensions/common/constants.h"
92 #endif
93
91 #if defined(ENABLE_MANAGED_USERS) 94 #if defined(ENABLE_MANAGED_USERS)
92 #include "chrome/browser/supervised_user/supervised_user_service.h" 95 #include "chrome/browser/supervised_user/supervised_user_service.h"
93 #include "chrome/browser/supervised_user/supervised_user_service_factory.h" 96 #include "chrome/browser/supervised_user/supervised_user_service_factory.h"
94 #include "chrome/browser/supervised_user/supervised_user_url_filter.h" 97 #include "chrome/browser/supervised_user/supervised_user_url_filter.h"
95 #endif 98 #endif
96 99
97 #if defined(OS_ANDROID) 100 #if defined(OS_ANDROID)
98 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_settings_android.h" 101 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_settings_android.h"
99 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_settings_factory_and roid.h" 102 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_settings_factory_and roid.h"
100 #include "components/data_reduction_proxy/common/data_reduction_proxy_switches.h " 103 #include "components/data_reduction_proxy/common/data_reduction_proxy_switches.h "
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 scoped_ptr<ProfileParams> params(new ProfileParams); 331 scoped_ptr<ProfileParams> params(new ProfileParams);
329 params->path = profile->GetPath(); 332 params->path = profile->GetPath();
330 333
331 params->io_thread = g_browser_process->io_thread(); 334 params->io_thread = g_browser_process->io_thread();
332 335
333 params->cookie_settings = CookieSettings::Factory::GetForProfile(profile); 336 params->cookie_settings = CookieSettings::Factory::GetForProfile(profile);
334 params->host_content_settings_map = profile->GetHostContentSettingsMap(); 337 params->host_content_settings_map = profile->GetHostContentSettingsMap();
335 params->ssl_config_service = profile->GetSSLConfigService(); 338 params->ssl_config_service = profile->GetSSLConfigService();
336 params->cookie_monster_delegate = 339 params->cookie_monster_delegate =
337 chrome_browser_net::CreateCookieDelegate(profile); 340 chrome_browser_net::CreateCookieDelegate(profile);
341 #if defined(ENABLE_EXTENSIONS)
338 params->extension_info_map = 342 params->extension_info_map =
339 extensions::ExtensionSystem::Get(profile)->info_map(); 343 extensions::ExtensionSystem::Get(profile)->info_map();
344 #endif
340 345
341 ProtocolHandlerRegistry* protocol_handler_registry = 346 ProtocolHandlerRegistry* protocol_handler_registry =
342 ProtocolHandlerRegistryFactory::GetForProfile(profile); 347 ProtocolHandlerRegistryFactory::GetForProfile(profile);
343 DCHECK(protocol_handler_registry); 348 DCHECK(protocol_handler_registry);
344 349
345 // The profile instance is only available here in the InitializeOnUIThread 350 // The profile instance is only available here in the InitializeOnUIThread
346 // method, so we create the url job factory here, then save it for 351 // method, so we create the url job factory here, then save it for
347 // later delivery to the job factory in Init(). 352 // later delivery to the job factory in Init().
348 params->protocol_handler_interceptor = 353 params->protocol_handler_interceptor =
349 protocol_handler_registry->CreateJobInterceptorFactory(); 354 protocol_handler_registry->CreateJobInterceptorFactory();
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
668 return (static_cast<ResourceContext*>(rc))->io_data_; 673 return (static_cast<ResourceContext*>(rc))->io_data_;
669 } 674 }
670 675
671 // static 676 // static
672 bool ProfileIOData::IsHandledProtocol(const std::string& scheme) { 677 bool ProfileIOData::IsHandledProtocol(const std::string& scheme) {
673 DCHECK_EQ(scheme, StringToLowerASCII(scheme)); 678 DCHECK_EQ(scheme, StringToLowerASCII(scheme));
674 static const char* const kProtocolList[] = { 679 static const char* const kProtocolList[] = {
675 url::kFileScheme, 680 url::kFileScheme,
676 content::kChromeDevToolsScheme, 681 content::kChromeDevToolsScheme,
677 chrome::kDomDistillerScheme, 682 chrome::kDomDistillerScheme,
683 #if defined(ENABLE_EXTENSIONS)
678 extensions::kExtensionScheme, 684 extensions::kExtensionScheme,
679 extensions::kExtensionResourceScheme, 685 extensions::kExtensionResourceScheme,
686 #endif
680 content::kChromeUIScheme, 687 content::kChromeUIScheme,
681 url::kDataScheme, 688 url::kDataScheme,
682 #if defined(OS_CHROMEOS) 689 #if defined(OS_CHROMEOS)
683 chrome::kDriveScheme, 690 chrome::kDriveScheme,
684 #endif // defined(OS_CHROMEOS) 691 #endif // defined(OS_CHROMEOS)
685 url::kAboutScheme, 692 url::kAboutScheme,
686 #if !defined(DISABLE_FTP_SUPPORT) 693 #if !defined(DISABLE_FTP_SUPPORT)
687 url::kFtpScheme, 694 url::kFtpScheme,
688 #endif // !defined(DISABLE_FTP_SUPPORT) 695 #endif // !defined(DISABLE_FTP_SUPPORT)
689 url::kBlobScheme, 696 url::kBlobScheme,
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
778 context = AcquireIsolatedMediaRequestContext(app_context, 785 context = AcquireIsolatedMediaRequestContext(app_context,
779 partition_descriptor); 786 partition_descriptor);
780 isolated_media_request_context_map_[partition_descriptor] = context; 787 isolated_media_request_context_map_[partition_descriptor] = context;
781 } 788 }
782 DCHECK(context); 789 DCHECK(context);
783 return context; 790 return context;
784 } 791 }
785 792
786 extensions::InfoMap* ProfileIOData::GetExtensionInfoMap() const { 793 extensions::InfoMap* ProfileIOData::GetExtensionInfoMap() const {
787 DCHECK(initialized_) << "ExtensionSystem not initialized"; 794 DCHECK(initialized_) << "ExtensionSystem not initialized";
795 #if defined(ENABLE_EXTENSIONS)
788 return extension_info_map_.get(); 796 return extension_info_map_.get();
797 #else
798 return NULL;
799 #endif
789 } 800 }
790 801
791 CookieSettings* ProfileIOData::GetCookieSettings() const { 802 CookieSettings* ProfileIOData::GetCookieSettings() const {
792 // Allow either Init() or SetCookieSettingsForTesting() to initialize. 803 // Allow either Init() or SetCookieSettingsForTesting() to initialize.
793 DCHECK(initialized_ || cookie_settings_.get()); 804 DCHECK(initialized_ || cookie_settings_.get());
794 return cookie_settings_.get(); 805 return cookie_settings_.get();
795 } 806 }
796 807
797 HostContentSettingsMap* ProfileIOData::GetHostContentSettingsMap() const { 808 HostContentSettingsMap* ProfileIOData::GetHostContentSettingsMap() const {
798 DCHECK(initialized_); 809 DCHECK(initialized_);
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
1011 network_delegate->set_data_reduction_proxy_params( 1022 network_delegate->set_data_reduction_proxy_params(
1012 io_thread_globals->data_reduction_proxy_params.get()); 1023 io_thread_globals->data_reduction_proxy_params.get());
1013 network_delegate->set_data_reduction_proxy_usage_stats( 1024 network_delegate->set_data_reduction_proxy_usage_stats(
1014 io_thread_globals->data_reduction_proxy_usage_stats.get()); 1025 io_thread_globals->data_reduction_proxy_usage_stats.get());
1015 network_delegate->set_data_reduction_proxy_auth_request_handler( 1026 network_delegate->set_data_reduction_proxy_auth_request_handler(
1016 io_thread_globals->data_reduction_proxy_auth_request_handler.get()); 1027 io_thread_globals->data_reduction_proxy_auth_request_handler.get());
1017 network_delegate->set_on_resolve_proxy_handler( 1028 network_delegate->set_on_resolve_proxy_handler(
1018 io_thread_globals->on_resolve_proxy_handler); 1029 io_thread_globals->on_resolve_proxy_handler);
1019 if (command_line.HasSwitch(switches::kEnableClientHints)) 1030 if (command_line.HasSwitch(switches::kEnableClientHints))
1020 network_delegate->SetEnableClientHints(); 1031 network_delegate->SetEnableClientHints();
1032 #if defined(ENABLE_EXTENSIONS)
1021 network_delegate->set_extension_info_map( 1033 network_delegate->set_extension_info_map(
1022 profile_params_->extension_info_map.get()); 1034 profile_params_->extension_info_map.get());
1035 #endif
1023 #if defined(ENABLE_CONFIGURATION_POLICY) 1036 #if defined(ENABLE_CONFIGURATION_POLICY)
1024 network_delegate->set_url_blacklist_manager(url_blacklist_manager_.get()); 1037 network_delegate->set_url_blacklist_manager(url_blacklist_manager_.get());
1025 #endif 1038 #endif
1026 network_delegate->set_profile(profile_params_->profile); 1039 network_delegate->set_profile(profile_params_->profile);
1027 network_delegate->set_profile_path(profile_params_->path); 1040 network_delegate->set_profile_path(profile_params_->path);
1028 network_delegate->set_cookie_settings(profile_params_->cookie_settings.get()); 1041 network_delegate->set_cookie_settings(profile_params_->cookie_settings.get());
1029 network_delegate->set_enable_do_not_track(&enable_do_not_track_); 1042 network_delegate->set_enable_do_not_track(&enable_do_not_track_);
1030 network_delegate->set_force_google_safe_search(&force_safesearch_); 1043 network_delegate->set_force_google_safe_search(&force_safesearch_);
1031 #if defined(OS_ANDROID) 1044 #if defined(OS_ANDROID)
1032 network_delegate->set_data_reduction_proxy_enabled_pref( 1045 network_delegate->set_data_reduction_proxy_enabled_pref(
(...skipping 21 matching lines...) Expand all
1054 transport_security_persister_.reset( 1067 transport_security_persister_.reset(
1055 new net::TransportSecurityPersister( 1068 new net::TransportSecurityPersister(
1056 transport_security_state_.get(), 1069 transport_security_state_.get(),
1057 profile_params_->path, 1070 profile_params_->path,
1058 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE), 1071 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE),
1059 IsOffTheRecord())); 1072 IsOffTheRecord()));
1060 1073
1061 // Take ownership over these parameters. 1074 // Take ownership over these parameters.
1062 cookie_settings_ = profile_params_->cookie_settings; 1075 cookie_settings_ = profile_params_->cookie_settings;
1063 host_content_settings_map_ = profile_params_->host_content_settings_map; 1076 host_content_settings_map_ = profile_params_->host_content_settings_map;
1077 #if defined(ENABLE_EXTENSIONS)
1064 extension_info_map_ = profile_params_->extension_info_map; 1078 extension_info_map_ = profile_params_->extension_info_map;
1079 #endif
1065 1080
1066 resource_context_->host_resolver_ = io_thread_globals->host_resolver.get(); 1081 resource_context_->host_resolver_ = io_thread_globals->host_resolver.get();
1067 resource_context_->request_context_ = main_request_context_.get(); 1082 resource_context_->request_context_ = main_request_context_.get();
1068 1083
1069 #if defined(ENABLE_MANAGED_USERS) 1084 #if defined(ENABLE_MANAGED_USERS)
1070 supervised_user_url_filter_ = profile_params_->supervised_user_url_filter; 1085 supervised_user_url_filter_ = profile_params_->supervised_user_url_filter;
1071 #endif 1086 #endif
1072 1087
1073 #if defined(OS_CHROMEOS) 1088 #if defined(OS_CHROMEOS)
1074 username_hash_ = profile_params_->username_hash; 1089 username_hash_ = profile_params_->username_hash;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
1114 // NOTE(willchan): Keep these protocol handlers in sync with 1129 // NOTE(willchan): Keep these protocol handlers in sync with
1115 // ProfileIOData::IsHandledProtocol(). 1130 // ProfileIOData::IsHandledProtocol().
1116 bool set_protocol = job_factory->SetProtocolHandler( 1131 bool set_protocol = job_factory->SetProtocolHandler(
1117 url::kFileScheme, 1132 url::kFileScheme,
1118 new net::FileProtocolHandler( 1133 new net::FileProtocolHandler(
1119 content::BrowserThread::GetBlockingPool()-> 1134 content::BrowserThread::GetBlockingPool()->
1120 GetTaskRunnerWithShutdownBehavior( 1135 GetTaskRunnerWithShutdownBehavior(
1121 base::SequencedWorkerPool::SKIP_ON_SHUTDOWN))); 1136 base::SequencedWorkerPool::SKIP_ON_SHUTDOWN)));
1122 DCHECK(set_protocol); 1137 DCHECK(set_protocol);
1123 1138
1139 #if defined(ENABLE_EXTENSIONS)
1124 DCHECK(extension_info_map_.get()); 1140 DCHECK(extension_info_map_.get());
1125 // Check only for incognito (and not Chrome OS guest mode GUEST_PROFILE). 1141 // Check only for incognito (and not Chrome OS guest mode GUEST_PROFILE).
1126 bool is_incognito = profile_type() == Profile::INCOGNITO_PROFILE; 1142 bool is_incognito = profile_type() == Profile::INCOGNITO_PROFILE;
1127 set_protocol = job_factory->SetProtocolHandler( 1143 set_protocol = job_factory->SetProtocolHandler(
1128 extensions::kExtensionScheme, 1144 extensions::kExtensionScheme,
1129 extensions::CreateExtensionProtocolHandler(is_incognito, 1145 extensions::CreateExtensionProtocolHandler(is_incognito,
1130 extension_info_map_.get())); 1146 extension_info_map_.get()));
1131 DCHECK(set_protocol); 1147 DCHECK(set_protocol);
1132 set_protocol = job_factory->SetProtocolHandler( 1148 set_protocol = job_factory->SetProtocolHandler(
1133 extensions::kExtensionResourceScheme, 1149 extensions::kExtensionResourceScheme,
1134 CreateExtensionResourceProtocolHandler()); 1150 CreateExtensionResourceProtocolHandler());
1135 DCHECK(set_protocol); 1151 DCHECK(set_protocol);
1152 #endif
1136 set_protocol = job_factory->SetProtocolHandler( 1153 set_protocol = job_factory->SetProtocolHandler(
1137 url::kDataScheme, new net::DataProtocolHandler()); 1154 url::kDataScheme, new net::DataProtocolHandler());
1138 DCHECK(set_protocol); 1155 DCHECK(set_protocol);
1139 #if defined(OS_CHROMEOS) 1156 #if defined(OS_CHROMEOS)
1140 if (profile_params_) { 1157 if (profile_params_) {
1141 set_protocol = job_factory->SetProtocolHandler( 1158 set_protocol = job_factory->SetProtocolHandler(
1142 chrome::kDriveScheme, 1159 chrome::kDriveScheme,
1143 new drive::DriveProtocolHandler(profile_params_->profile)); 1160 new drive::DriveProtocolHandler(profile_params_->profile));
1144 DCHECK(set_protocol); 1161 DCHECK(set_protocol);
1145 } 1162 }
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
1273 void ProfileIOData::SetCookieSettingsForTesting( 1290 void ProfileIOData::SetCookieSettingsForTesting(
1274 CookieSettings* cookie_settings) { 1291 CookieSettings* cookie_settings) {
1275 DCHECK(!cookie_settings_.get()); 1292 DCHECK(!cookie_settings_.get());
1276 cookie_settings_ = cookie_settings; 1293 cookie_settings_ = cookie_settings;
1277 } 1294 }
1278 1295
1279 void ProfileIOData::set_signin_names_for_testing( 1296 void ProfileIOData::set_signin_names_for_testing(
1280 SigninNamesOnIOThread* signin_names) { 1297 SigninNamesOnIOThread* signin_names) {
1281 signin_names_.reset(signin_names); 1298 signin_names_.reset(signin_names);
1282 } 1299 }
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_io_data.h ('k') | chrome/browser/sync/profile_sync_components_factory_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698