Allow toggling the use of local Safe Browsing lists on Android via flags

This is required to allow the test team to toggle the feature.

Bug: 894301
Change-Id: I3dde2b10bb33ae1972fa6091abddd120bc9c357c
Reviewed-on: https://chromium-review.googlesource.com/c/1278151
Reviewed-by: Steven Holte <[email protected]>
Commit-Queue: Varun Khaneja <[email protected]>
Cr-Commit-Position: refs/heads/master@{#599414}
diff --git a/chrome/browser/about_flags.cc b/chrome/browser/about_flags.cc
index d45e3431..046d9f0a 100644
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -82,6 +82,7 @@
 #include "components/previews/core/previews_features.h"
 #include "components/previews/core/previews_switches.h"
 #include "components/printing/browser/features.h"
+#include "components/safe_browsing/features.h"
 #include "components/search_provider_logos/features.h"
 #include "components/search_provider_logos/switches.h"
 #include "components/security_state/core/features.h"
@@ -4455,6 +4456,13 @@
      FEATURE_VALUE_TYPE(chrome::android::kEphemeralTab)},
 #endif  // defined(OS_ANDROID)
 
+#if defined(OS_ANDROID)
+    {"safe-browsing-use-local-blacklists-v2",
+     flag_descriptions::kSafeBrowsingUseLocalBlacklistsV2Name,
+     flag_descriptions::kSafeBrowsingUseLocalBlacklistsV2Description,
+     kOsAndroid, FEATURE_VALUE_TYPE(safe_browsing::kUseLocalBlacklistsV2)},
+#endif  // defined(OS_ANDROID)
+
 };
 
 class FlagsStateSingleton {