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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/util/FeatureUtilities.java

Issue 2853583002: 🏠 Add expand button and flag to enable it (Closed)
Patch Set: rebase Created 3 years, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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.util; 5 package org.chromium.chrome.browser.util;
6 6
7 import android.annotation.SuppressLint; 7 import android.annotation.SuppressLint;
8 import android.annotation.TargetApi; 8 import android.annotation.TargetApi;
9 import android.content.Context; 9 import android.content.Context;
10 import android.content.Intent; 10 import android.content.Intent;
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 * @return Whether or not chrome should attach the toolbar to the bottom of the screen. 258 * @return Whether or not chrome should attach the toolbar to the bottom of the screen.
259 */ 259 */
260 public static boolean isChromeHomeEnabled() { 260 public static boolean isChromeHomeEnabled() {
261 if (sChromeHomeEnabled == null) { 261 if (sChromeHomeEnabled == null) {
262 sChromeHomeEnabled = ChromePreferenceManager.getInstance().isChromeH omeEnabled(); 262 sChromeHomeEnabled = ChromePreferenceManager.getInstance().isChromeH omeEnabled();
263 } 263 }
264 264
265 return sChromeHomeEnabled; 265 return sChromeHomeEnabled;
266 } 266 }
267 267
268 /**
269 * @return Whether or not the expand button for Chrome Home is enabled.
270 */
271 public static boolean isChromeHomeExpandButtonEnabled() {
272 return ChromeFeatureList.isEnabled(ChromeFeatureList.CHROME_HOME_EXPAND_ BUTTON);
273 }
274
268 private static native void nativeSetCustomTabVisible(boolean visible); 275 private static native void nativeSetCustomTabVisible(boolean visible);
269 private static native void nativeSetIsInMultiWindowMode(boolean isInMultiWin dowMode); 276 private static native void nativeSetIsInMultiWindowMode(boolean isInMultiWin dowMode);
270 } 277 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698