Index: chrome/browser/profiles/profile_io_data.cc |
=================================================================== |
--- chrome/browser/profiles/profile_io_data.cc (revision 90024) |
+++ chrome/browser/profiles/profile_io_data.cc (working copy) |
@@ -213,6 +213,8 @@ |
params->is_incognito = profile->IsOffTheRecord(); |
params->clear_local_state_on_exit = |
pref_service->GetBoolean(prefs::kClearSiteDataOnExit); |
+ params->safe_browsing_enabled = |
+ pref_service->GetBoolean(prefs::kSafeBrowsingEnabled); |
params->appcache_service = profile->GetAppCacheService(); |
@@ -492,6 +494,8 @@ |
resource_context_.set_quota_manager(quota_manager_); |
resource_context_.set_host_zoom_map(host_zoom_map_); |
resource_context_.set_prerender_manager(prerender_manager_); |
+ resource_context_.set_safe_browsing_enabled( |
+ profile_params_->safe_browsing_enabled); |
Joao da Silva
2011/06/24 14:32:04
This won't handle changes to the preference. For e
Miranda Callahan
2011/07/07 17:35:50
Excellent idea -- done.
mattm
2011/07/07 21:34:55
Note that the client side detection still wouldn't
|
resource_context_.SetUserData(NULL, const_cast<ProfileIOData*>(this)); |
LazyInitializeInternal(profile_params_.get()); |