Chromium Code Reviews| Index: chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetsConfig.java |
| diff --git a/chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetsConfig.java b/chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetsConfig.java |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..4397a92ca3a3fba67080d6fa70e44cb9d4152356 |
| --- /dev/null |
| +++ b/chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetsConfig.java |
| @@ -0,0 +1,20 @@ |
| +// Copyright 2016 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. |
| + |
| +package org.chromium.chrome.browser.ntp.snippets; |
| + |
| +import org.chromium.chrome.browser.ChromeFeatureList; |
| +import org.chromium.chrome.browser.preferences.PrefServiceBridge; |
| + |
| +/** |
| + * Provides configuration details for NTP snippets. |
| + */ |
| +public final class SnippetsConfig { |
| + private SnippetsConfig() {} |
| + |
| + public static boolean isEnabled() { |
| + return ChromeFeatureList.isEnabled(ChromeFeatureList.NTP_SNIPPETS) |
| + && PrefServiceBridge.getInstance().isSearchSuggestEnabled(); |
|
dgn
2016/05/24 16:38:35
We want to use the material UI (toolbar disabled,
Michael van Ouwerkerk
2016/05/24 16:58:09
I'm not sure what you meant, but the goal of this
dgn
2016/05/24 18:04:19
Ah snap I missed that, sorry. So yeah the CL to up
|
| + } |
| +} |