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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/signin/AccountManagementFragment.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 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.signin; 5 package org.chromium.chrome.browser.signin;
6 6
7 import android.accounts.Account; 7 import android.accounts.Account;
8 import android.annotation.TargetApi; 8 import android.annotation.TargetApi;
9 import android.app.Activity; 9 import android.app.Activity;
10 import android.app.Dialog; 10 import android.app.Dialog;
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 /** 93 /**
94 * SharedPreference name for the preference that disables signing out of Chr ome. 94 * SharedPreference name for the preference that disables signing out of Chr ome.
95 * Signing out is forever disabled once Chrome signs the user in automatical ly 95 * Signing out is forever disabled once Chrome signs the user in automatical ly
96 * if the device has a child account or if the device is an Android EDU devi ce. 96 * if the device has a child account or if the device is an Android EDU devi ce.
97 */ 97 */
98 private static final String SIGN_OUT_ALLOWED = "auto_signed_in_school_accoun t"; 98 private static final String SIGN_OUT_ALLOWED = "auto_signed_in_school_accoun t";
99 99
100 private static final HashMap<String, Pair<String, Bitmap>> sToNamePicture = 100 private static final HashMap<String, Pair<String, Bitmap>> sToNamePicture =
101 new HashMap<String, Pair<String, Bitmap>>(); 101 new HashMap<String, Pair<String, Bitmap>>();
102 102
103 private static String sChildAccountId = null; 103 private static String sChildAccountId;
104 private static Bitmap sCachedBadgedPicture = null; 104 private static Bitmap sCachedBadgedPicture;
105 105
106 public static final String PREF_SIGN_OUT = "sign_out"; 106 public static final String PREF_SIGN_OUT = "sign_out";
107 public static final String PREF_ADD_ACCOUNT = "add_account"; 107 public static final String PREF_ADD_ACCOUNT = "add_account";
108 public static final String PREF_PARENTAL_SETTINGS = "parental_settings"; 108 public static final String PREF_PARENTAL_SETTINGS = "parental_settings";
109 public static final String PREF_PARENT_ACCOUNTS = "parent_accounts"; 109 public static final String PREF_PARENT_ACCOUNTS = "parent_accounts";
110 public static final String PREF_CHILD_CONTENT = "child_content"; 110 public static final String PREF_CHILD_CONTENT = "child_content";
111 public static final String PREF_CHILD_SAFE_SITES = "child_safe_sites"; 111 public static final String PREF_CHILD_SAFE_SITES = "child_safe_sites";
112 public static final String PREF_GOOGLE_ACTIVITY_CONTROLS = "google_activity_ controls"; 112 public static final String PREF_GOOGLE_ACTIVITY_CONTROLS = "google_activity_ controls";
113 public static final String PREF_SYNC_SETTINGS = "sync_settings"; 113 public static final String PREF_SYNC_SETTINGS = "sync_settings";
114 114
(...skipping 610 matching lines...) Expand 10 before | Expand all | Expand 10 after
725 * @param context A context 725 * @param context A context
726 * @param isAllowed True if the sign out is not disabled due to a child/EDU account 726 * @param isAllowed True if the sign out is not disabled due to a child/EDU account
727 */ 727 */
728 public static void setSignOutAllowedPreferenceValue(Context context, boolean isAllowed) { 728 public static void setSignOutAllowedPreferenceValue(Context context, boolean isAllowed) {
729 ContextUtils.getAppSharedPreferences() 729 ContextUtils.getAppSharedPreferences()
730 .edit() 730 .edit()
731 .putBoolean(SIGN_OUT_ALLOWED, isAllowed) 731 .putBoolean(SIGN_OUT_ALLOWED, isAllowed)
732 .apply(); 732 .apply();
733 } 733 }
734 } 734 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698