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

Unified Diff: chrome/browser/profiles/profile_io_data.cc

Issue 7134017: Make safe browsing work in a multi-profile environment. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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 side-by-side diff with in-line comments
Download patch
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());

Powered by Google App Engine
This is Rietveld 408576698