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

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

Issue 2814593002: WebView: add {set,get}SafeBrowsingEnabled per WebView (Closed)
Patch Set: Add comment about getSafeBrowsingEnabled() Created 3 years, 8 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
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 26d16d3dc96c5baef82f404de438d3f369739b54..b76b9fe0ee33cc678b07133c4566d77d58f0d143 100644
--- a/android_webview/lib/main/aw_main_delegate.cc
+++ b/android_webview/lib/main/aw_main_delegate.cc
@@ -161,12 +161,10 @@ bool AwMainDelegate::BasicStartupComplete(int* exit_code) {
android_webview::RegisterPathProvider();
- if (AwSafeBrowsingConfigHelper::GetSafeBrowsingEnabled()) {
- safe_browsing_api_handler_.reset(
- new safe_browsing::SafeBrowsingApiHandlerBridge());
- safe_browsing::SafeBrowsingApiHandler::SetInstance(
- safe_browsing_api_handler_.get());
- }
+ safe_browsing_api_handler_.reset(
+ new safe_browsing::SafeBrowsingApiHandlerBridge());
+ safe_browsing::SafeBrowsingApiHandler::SetInstance(
+ safe_browsing_api_handler_.get());
return false;
}

Powered by Google App Engine
This is Rietveld 408576698