| 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()));
|
| }
|
| }
|
|
|
|
|