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

Unified Diff: chrome/browser/browser_process_impl.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/browser_process_impl.cc
===================================================================
--- chrome/browser/browser_process_impl.cc (revision 90024)
+++ chrome/browser/browser_process_impl.cc (working copy)
@@ -1005,7 +1005,9 @@
profile_manager()->GetDefaultProfile() : NULL;
mattm 2011/06/23 21:40:40 Did you see my comment about the client side phish
Miranda Callahan 2011/07/07 17:35:50 Done.
if (IsSafeBrowsingDetectionServiceEnabled() &&
PathService::Get(chrome::DIR_USER_DATA, &model_file_dir) &&
- profile && profile->GetRequestContext()) {
+ profile &&
+ profile->GetPrefs()->GetBoolean(prefs::kSafeBrowsingEnabled) &&
+ profile->GetRequestContext()) {
safe_browsing_detection_service_.reset(
safe_browsing::ClientSideDetectionService::Create(
model_file_dir, profile->GetRequestContext()));
mattm 2011/06/23 21:40:40 I think this should use the system request context
Miranda Callahan 2011/07/07 17:35:50 Done.
« no previous file with comments | « no previous file | chrome/browser/download/download_file_manager.cc » ('j') | chrome/browser/profiles/profile_io_data.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698