Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 package org.chromium.chrome.browser; | 5 package org.chromium.chrome.browser; |
| 6 | 6 |
| 7 import org.chromium.base.annotations.JNINamespace; | 7 import org.chromium.base.annotations.JNINamespace; |
| 8 import org.chromium.base.annotations.MainDex; | 8 import org.chromium.base.annotations.MainDex; |
| 9 | 9 |
| 10 /** | 10 /** |
| (...skipping 14 matching lines...) Expand all Loading... | |
| 25 * @param featureName The name of the feature to query. | 25 * @param featureName The name of the feature to query. |
| 26 * @return Whether the feature is enabled or not. | 26 * @return Whether the feature is enabled or not. |
| 27 */ | 27 */ |
| 28 public static boolean isEnabled(String featureName) { | 28 public static boolean isEnabled(String featureName) { |
| 29 return nativeIsEnabled(featureName); | 29 return nativeIsEnabled(featureName); |
| 30 } | 30 } |
| 31 | 31 |
| 32 public static final String NTP_SNIPPETS = "NTPSnippets"; | 32 public static final String NTP_SNIPPETS = "NTPSnippets"; |
| 33 public static final String NTP_TOOLBAR = "NTPToolbar"; | 33 public static final String NTP_TOOLBAR = "NTPToolbar"; |
| 34 public static final String NTP_FAKE_OMNIBOX_TEXT = "NTPFakeOmniboxText"; | 34 public static final String NTP_FAKE_OMNIBOX_TEXT = "NTPFakeOmniboxText"; |
| 35 public static final String USE_NEW_MEDIA_NOTIFICATION = "UseNewMediaNotifica tion"; | |
|
mlamouri (slow - plz ping)
2016/04/07 19:47:34
"MediaStyleNotifications" might be a better name b
Zhiqiang Zhang (Slow)
2016/04/11 09:26:28
Done.
| |
| 35 | 36 |
| 36 private static native boolean nativeIsEnabled(String featureName); | 37 private static native boolean nativeIsEnabled(String featureName); |
| 37 } | 38 } |
| OLD | NEW |