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

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

Issue 2548013002: Remove redundant field initialization in Java code. (Closed)
Patch Set: rebase Created 4 years 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 private static final String HERB_EXPERIMENT_FLAVOR_PARAM = "type"; 47 private static final String HERB_EXPERIMENT_FLAVOR_PARAM = "type";
48 48
49 private static Boolean sHasGoogleAccountAuthenticator; 49 private static Boolean sHasGoogleAccountAuthenticator;
50 private static Boolean sHasRecognitionIntentHandler; 50 private static Boolean sHasRecognitionIntentHandler;
51 private static Boolean sChromeHomeEnabled; 51 private static Boolean sChromeHomeEnabled;
52 52
53 private static String sCachedHerbFlavor; 53 private static String sCachedHerbFlavor;
54 private static boolean sIsHerbFlavorCached; 54 private static boolean sIsHerbFlavorCached;
55 55
56 /** Used to track if cached command line flags should be refreshed. */ 56 /** Used to track if cached command line flags should be refreshed. */
57 private static CommandLine.ResetListener sResetListener = null; 57 private static CommandLine.ResetListener sResetListener;
58 58
59 /** 59 /**
60 * Determines whether or not the {@link RecognizerIntent#ACTION_WEB_SEARCH} {@link Intent} 60 * Determines whether or not the {@link RecognizerIntent#ACTION_WEB_SEARCH} {@link Intent}
61 * is handled by any {@link android.app.Activity}s in the system. The resul t will be cached for 61 * is handled by any {@link android.app.Activity}s in the system. The resul t will be cached for
62 * future calls. Passing {@code false} to {@code useCachedValue} will force it to re-query any 62 * future calls. Passing {@code false} to {@code useCachedValue} will force it to re-query any
63 * {@link android.app.Activity}s that can process the {@link Intent}. 63 * {@link android.app.Activity}s that can process the {@link Intent}.
64 * @param context The {@link Context} to use to check to see if the { @link Intent} will 64 * @param context The {@link Context} to use to check to see if the { @link Intent} will
65 * be handled. 65 * be handled.
66 * @param useCachedValue Whether or not to use the cached value from a previ ous result. 66 * @param useCachedValue Whether or not to use the cached value from a previ ous result.
67 * @return {@code true} if recognition is supported. {@code false} otherwis e. 67 * @return {@code true} if recognition is supported. {@code false} otherwis e.
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 ChromePreferenceManager.getInstance(ContextUtils.getApplicat ionContext()); 265 ChromePreferenceManager.getInstance(ContextUtils.getApplicat ionContext());
266 sChromeHomeEnabled = manager.isChromeHomeEnabled(); 266 sChromeHomeEnabled = manager.isChromeHomeEnabled();
267 } 267 }
268 268
269 return sChromeHomeEnabled; 269 return sChromeHomeEnabled;
270 } 270 }
271 271
272 private static native void nativeSetCustomTabVisible(boolean visible); 272 private static native void nativeSetCustomTabVisible(boolean visible);
273 private static native void nativeSetIsInMultiWindowMode(boolean isInMultiWin dowMode); 273 private static native void nativeSetIsInMultiWindowMode(boolean isInMultiWin dowMode);
274 } 274 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698