| Index: chrome/browser/chrome_content_browser_client.cc
|
| diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc
|
| index 840d9a1e7d5b2c8cc00087d5a470e5a8b7be64ef..f3c6ccd37809001447976a550257a482059f81e0 100644
|
| --- a/chrome/browser/chrome_content_browser_client.cc
|
| +++ b/chrome/browser/chrome_content_browser_client.cc
|
| @@ -74,6 +74,8 @@
|
| #include "chrome/browser/renderer_host/pepper/chrome_browser_pepper_host_factory.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_impl.h"
|
| +#include "chrome/browser/safe_browsing/safe_browsing_service.h"
|
| #include "chrome/browser/search/instant_service.h"
|
| #include "chrome/browser/search/instant_service_factory.h"
|
| #include "chrome/browser/search/search.h"
|
| @@ -3085,6 +3087,18 @@ void ChromeContentBrowserClient::ExposeInterfacesToRenderer(
|
| registry->AddInterface(
|
| base::Bind(&NetBenchmarking::Create, profile, context));
|
| }
|
| +
|
| + if (base::CommandLine::ForCurrentProcess()->HasSwitch(
|
| + switches::kEnableNetworkService)) {
|
| + registry->AddInterface(
|
| + base::Bind(
|
| + &safe_browsing::SafeBrowsingImpl::Create,
|
| + g_browser_process->safe_browsing_service()->database_manager(),
|
| + g_browser_process->safe_browsing_service()->ui_manager(),
|
| + render_process_host->GetID()),
|
| + BrowserThread::GetTaskRunnerForThread(BrowserThread::IO));
|
| + }
|
| +
|
| #if defined(OS_WIN)
|
| if (base::FeatureList::IsEnabled(features::kModuleDatabase)) {
|
| // Add the ModuleDatabase interface. This is the interface used by renderer
|
|
|