Index: ios/chrome/browser/experimental_flags.mm |
diff --git a/ios/chrome/browser/experimental_flags.mm b/ios/chrome/browser/experimental_flags.mm |
index d4d26e79b45f1c77b767dc37432cee10890fea8a..31fc04302205270e70bf99fe7d59df46e94ceef2 100644 |
--- a/ios/chrome/browser/experimental_flags.mm |
+++ b/ios/chrome/browser/experimental_flags.mm |
@@ -309,4 +309,17 @@ bool UseOnlyLocalHeuristicsForPasswordGeneration() { |
autofill::switches::kLocalHeuristicsOnlyForPasswordGeneration); |
} |
+bool IsSuggestionsUIEnabled() { |
+ // Check if the experimental flag is forced on or off. |
+ base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); |
+ if (command_line->HasSwitch(switches::kEnableSuggestionsUI)) |
+ return true; |
+ |
+ if (command_line->HasSwitch(switches::kDisableSuggestionsUI)) |
+ return false; |
+ |
+ // By default, disable it. |
+ return false; |
+} |
+ |
} // namespace experimental_flags |