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

Unified Diff: components/suggestions/features.cc

Issue 2858883002: Add flag for disabling minimum of ntp tile suggestions (Closed)
Patch Set: Replace switch with feature Created 3 years, 8 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: components/suggestions/features.cc
diff --git a/components/suggestions/features.cc b/components/suggestions/features.cc
new file mode 100644
index 0000000000000000000000000000000000000000..610e1f7e6a60af3b8af697d73e637866eaa8107c
--- /dev/null
+++ b/components/suggestions/features.cc
@@ -0,0 +1,14 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "components/suggestions/features.h"
+
+namespace suggestions {
+
+// If this feature is enabled, we request and use suggestions even if there are
+// only very few of them.
Marc Treib 2017/05/03 11:43:56 s/only very few/less than 8/ ? (That's really what
fhorschig 2017/05/03 14:19:42 Hmm, actually the server-side config differentiate
Marc Treib 2017/05/03 14:28:41 ...wait, really? If anything, shouldn't it be the
fhorschig 2017/05/04 07:39:58 As discussed, this is the default config that migh
+const base::Feature kDisableSuggestionsMinimumFeature{
+ "DisableSuggestionsMinimum", base::FEATURE_DISABLED_BY_DEFAULT};
Marc Treib 2017/05/03 11:43:56 Hm, not a fan of a feature that starts with "Disab
fhorschig 2017/05/03 14:19:42 Renamed.
+
+} // namespace suggestions

Powered by Google App Engine
This is Rietveld 408576698