| Index: chrome/browser/safe_browsing/certificate_reporting_service_factory.cc
|
| diff --git a/chrome/browser/safe_browsing/certificate_reporting_service_factory.cc b/chrome/browser/safe_browsing/certificate_reporting_service_factory.cc
|
| index 8d27d7bd5148854b8ad67bf7c495327bffa06933..c66857b280d19eb8401ee6c067c57af933014398 100644
|
| --- a/chrome/browser/safe_browsing/certificate_reporting_service_factory.cc
|
| +++ b/chrome/browser/safe_browsing/certificate_reporting_service_factory.cc
|
| @@ -2,8 +2,11 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| +#include "chrome/browser/browser_process.h"
|
| +#include "chrome/browser/profiles/profile.h"
|
| #include "chrome/browser/safe_browsing/certificate_reporting_service.h"
|
| #include "chrome/browser/safe_browsing/certificate_reporting_service_factory.h"
|
| +#include "chrome/browser/safe_browsing/safe_browsing_service.h"
|
| #include "components/keyed_service/content/browser_context_dependency_manager.h"
|
|
|
| // static
|
| @@ -29,7 +32,11 @@ CertificateReportingServiceFactory::~CertificateReportingServiceFactory() {}
|
|
|
| KeyedService* CertificateReportingServiceFactory::BuildServiceInstanceFor(
|
| content::BrowserContext* profile) const {
|
| - return nullptr;
|
| + safe_browsing::SafeBrowsingService* safe_browsing_service =
|
| + g_browser_process->safe_browsing_service();
|
| +
|
| + return CertificateReportingService::Create(safe_browsing_service,
|
| + static_cast<Profile*>(profile));
|
| }
|
|
|
| content::BrowserContext*
|
|
|