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

Unified Diff: android_webview/lib/main/aw_main_delegate.cc

Issue 2615393002: Implement the basics for Safebrowsing for WebView (Closed)
Patch Set: more cleanup Created 3 years, 11 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 | « android_webview/lib/main/aw_main_delegate.h ('k') | android_webview/native/aw_contents.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 4b2b973cb0ba8ed3129412b67a8580df9af15fab..f31503851f0471781da4ad2fc5542cafacae89fa 100644
--- a/android_webview/lib/main/aw_main_delegate.cc
+++ b/android_webview/lib/main/aw_main_delegate.cc
@@ -30,6 +30,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"
@@ -152,6 +153,11 @@ bool AwMainDelegate::BasicStartupComplete(int* exit_code) {
CommandLineHelper::AddDisabledFeature(*cl, features::kWebPayments.name);
+ safe_browsing_api_handler_.reset(
+ new safe_browsing::SafeBrowsingApiHandlerBridge());
+ safe_browsing::SafeBrowsingApiHandler::SetInstance(
+ safe_browsing_api_handler_.get());
+
return false;
}
« no previous file with comments | « android_webview/lib/main/aw_main_delegate.h ('k') | android_webview/native/aw_contents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698