| Index: android_webview/lib/main/aw_main_delegate.cc
|
| diff --git a/android_webview/lib/main/aw_main_delegate.cc b/android_webview/lib/main/aw_main_delegate.cc
|
| index 27601c53d1efd06334087c4319e09569fa483d1a..623025b3ffbaff60b4072b7eaa62b3b3aa9427b0 100644
|
| --- a/android_webview/lib/main/aw_main_delegate.cc
|
| +++ b/android_webview/lib/main/aw_main_delegate.cc
|
| @@ -31,6 +31,7 @@
|
| #include "base/threading/thread_restrictions.h"
|
| #include "cc/base/switches.h"
|
| #include "components/crash/content/app/breakpad_linux.h"
|
| +#include "components/safe_browsing_db/android/safe_browsing_api_handler_bridge.h"
|
| #include "components/spellcheck/common/spellcheck_features.h"
|
| #include "content/public/browser/android/browser_media_player_manager_register.h"
|
| #include "content/public/browser/browser_main_runner.h"
|
| @@ -155,6 +156,14 @@ bool AwMainDelegate::BasicStartupComplete(int* exit_code) {
|
|
|
| android_webview::RegisterPathProvider();
|
|
|
| + if (base::CommandLine::ForCurrentProcess()->HasSwitch(
|
| + switches::kWebViewEnableSafeBrowsingSupport)) {
|
| + safe_browsing_api_handler_.reset(
|
| + new safe_browsing::SafeBrowsingApiHandlerBridge());
|
| + safe_browsing::SafeBrowsingApiHandler::SetInstance(
|
| + safe_browsing_api_handler_.get());
|
| + }
|
| +
|
| return false;
|
| }
|
|
|
|
|