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

Unified Diff: ios/chrome/browser/experimental_flags.mm

Issue 2643753002: Add the suggestions UI in chrome (Closed)
Patch Set: Address comments 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
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..8bea1c5239878798336fb94925d4dbaa15fc7067 100644
--- a/ios/chrome/browser/experimental_flags.mm
+++ b/ios/chrome/browser/experimental_flags.mm
@@ -45,6 +45,7 @@ NSString* const kPendingIndexNavigationDisabled =
@"PendingIndexNavigationDisabled";
NSString* const kSafariVCSignInDisabled = @"SafariVCSignInDisabled";
NSString* const kWhatsNewPromoStatus = @"WhatsNewPromoStatus";
+NSString* const kEnableSuggestions = @"EnableSuggestions";
const base::Feature kIOSDownloadImageRenaming{
"IOSDownloadImageRenaming", base::FEATURE_DISABLED_BY_DEFAULT};
@@ -309,4 +310,8 @@ bool UseOnlyLocalHeuristicsForPasswordGeneration() {
autofill::switches::kLocalHeuristicsOnlyForPasswordGeneration);
}
+bool IsSuggestionsUIEnabled() {
+ return [[NSUserDefaults standardUserDefaults] boolForKey:kEnableSuggestions];
+}
+
} // namespace experimental_flags

Powered by Google App Engine
This is Rietveld 408576698