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

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: respond to mattm's comment Created 9 years, 5 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 91583)
+++ chrome/browser/browser_process_impl.cc (working copy)
@@ -972,16 +972,12 @@
// Set this flag to true so that we don't retry indefinitely to
// create the service class if there was an error.
created_safe_browsing_detection_service_ = true;
-
FilePath model_file_dir;
- Profile* profile = profile_manager() ?
- profile_manager()->GetDefaultProfile() : NULL;
- if (IsSafeBrowsingDetectionServiceEnabled() &&
- PathService::Get(chrome::DIR_USER_DATA, &model_file_dir) &&
- profile && profile->GetRequestContext()) {
+ PathService::Get(chrome::DIR_USER_DATA, &model_file_dir);
+ if (IsSafeBrowsingDetectionServiceEnabled()) {
safe_browsing_detection_service_.reset(
safe_browsing::ClientSideDetectionService::Create(
- model_file_dir, profile->GetRequestContext()));
+ model_file_dir, g_browser_process->system_request_context()));
}
}

Powered by Google App Engine
This is Rietveld 408576698