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

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: addressed sky's nit 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
« no previous file with comments | « no previous file | chrome/browser/chrome_content_browser_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browser_process_impl.cc
===================================================================
--- chrome/browser/browser_process_impl.cc (revision 92179)
+++ chrome/browser/browser_process_impl.cc (working copy)
@@ -935,6 +935,8 @@
void BrowserProcessImpl::CreateSafeBrowsingService() {
DCHECK(safe_browsing_service_.get() == NULL);
+ // 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_service_ = true;
#if defined(ENABLE_SAFE_BROWSING)
safe_browsing_service_ = SafeBrowsingService::CreateSafeBrowsingService();
@@ -950,14 +952,11 @@
#if defined(ENABLE_SAFE_BROWSING)
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)) {
safe_browsing_detection_service_.reset(
safe_browsing::ClientSideDetectionService::Create(
- model_file_dir, profile->GetRequestContext()));
+ model_file_dir, g_browser_process->system_request_context()));
}
#endif
}
« no previous file with comments | « no previous file | chrome/browser/chrome_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698