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

Unified Diff: ui/app_list/app_list_features.cc

Issue 2933673002: Preparing to making answer-card independent of fullscreen. (Closed)
Patch Set: CR comments Created 3 years, 6 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: ui/app_list/app_list_features.cc
diff --git a/ui/app_list/app_list_features.cc b/ui/app_list/app_list_features.cc
index 770e0e03a727100f82d9fbe640496cfacb1f70ee..42fc812135961d666e58ba80e3512b5e05eb0d79 100644
--- a/ui/app_list/app_list_features.cc
+++ b/ui/app_list/app_list_features.cc
@@ -33,6 +33,11 @@ bool IsFullscreenAppListEnabled() {
return base::FeatureList::IsEnabled(kEnableFullscreenAppList);
}
+bool IsSearchResultsNewDesignEnabled() {
+ return IsFullscreenAppListEnabled() ||
+ (IsAnswerCardEnabled() && !IsAnswerCardDarkRunEnabled());
+}
+
int APP_LIST_EXPORT AnswerCardMaxWidth() {
static const int max_width = base::GetFieldTrialParamByFeatureAsInt(
kEnableAnswerCard, "CardMaxWidth", 608);

Powered by Google App Engine
This is Rietveld 408576698