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

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 89656)
+++ chrome/browser/profiles/profile_io_data.cc (working copy)
@@ -213,6 +213,7 @@
params->is_incognito = profile->IsOffTheRecord();
params->clear_local_state_on_exit =
pref_service->GetBoolean(prefs::kClearSiteDataOnExit);
+ params->safe_browsing_enabled = profile->SafeBrowsingEnabled();
params->appcache_service = profile->GetAppCacheService();
@@ -492,6 +493,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);
resource_context_.SetUserData(NULL, const_cast<ProfileIOData*>(this));
LazyInitializeInternal(profile_params_.get());

Powered by Google App Engine
This is Rietveld 408576698