[iOS] Add an about:flags entry for Safe Browsing
This adds an about:flags entry for Safe Browsing, to make it easier
to enable and test.
Bug: 1028755
Change-Id: I48bb2c6d20a707a2f44810e71403abd2eb8dda3d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2105797
Commit-Queue: Ali Juma <[email protected]>
Reviewed-by: Varun Khaneja <[email protected]>
Reviewed-by: Kurt Horimoto <[email protected]>
Reviewed-by: Rohit Rao <[email protected]>
Cr-Commit-Position: refs/heads/master@{#751691}
diff --git a/ios/chrome/browser/flags/about_flags.mm b/ios/chrome/browser/flags/about_flags.mm
index 1b3094a..0c33cc33 100644
--- a/ios/chrome/browser/flags/about_flags.mm
+++ b/ios/chrome/browser/flags/about_flags.mm
@@ -39,6 +39,7 @@
#include "components/omnibox/common/omnibox_features.h"
#include "components/password_manager/core/common/password_manager_features.h"
#include "components/payments/core/features.h"
+#include "components/safe_browsing/core/features.h"
#include "components/security_state/core/features.h"
#include "components/send_tab_to_self/features.h"
#include "components/signin/core/browser/account_reconcilor.h"
@@ -577,6 +578,9 @@
flags_ui::kOsIos,
FEATURE_VALUE_TYPE(
web::features::kIOSLookalikeUrlNavigationSuggestionsUI)},
+ {"safe-browsing-available", flag_descriptions::kSafeBrowsingAvailableName,
+ flag_descriptions::kSafeBrowsingAvailableDescription, flags_ui::kOsIos,
+ FEATURE_VALUE_TYPE(safe_browsing::kSafeBrowsingAvailableOnIOS)},
};
// Add all switches from experimental flags to |command_line|.