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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/signin/AccountManagementFragment.java

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 4 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 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 import org.chromium.chrome.browser.preferences.PreferencesLauncher; 46 import org.chromium.chrome.browser.preferences.PreferencesLauncher;
47 import org.chromium.chrome.browser.preferences.SyncPreference; 47 import org.chromium.chrome.browser.preferences.SyncPreference;
48 import org.chromium.chrome.browser.profiles.Profile; 48 import org.chromium.chrome.browser.profiles.Profile;
49 import org.chromium.chrome.browser.profiles.ProfileAccountManagementMetrics; 49 import org.chromium.chrome.browser.profiles.ProfileAccountManagementMetrics;
50 import org.chromium.chrome.browser.profiles.ProfileDownloader; 50 import org.chromium.chrome.browser.profiles.ProfileDownloader;
51 import org.chromium.chrome.browser.signin.SignOutDialogFragment.SignOutDialogLis tener; 51 import org.chromium.chrome.browser.signin.SignOutDialogFragment.SignOutDialogLis tener;
52 import org.chromium.chrome.browser.signin.SigninManager.SignInStateObserver; 52 import org.chromium.chrome.browser.signin.SigninManager.SignInStateObserver;
53 import org.chromium.chrome.browser.sync.ProfileSyncService; 53 import org.chromium.chrome.browser.sync.ProfileSyncService;
54 import org.chromium.chrome.browser.sync.ProfileSyncService.SyncStateChangedListe ner; 54 import org.chromium.chrome.browser.sync.ProfileSyncService.SyncStateChangedListe ner;
55 import org.chromium.chrome.browser.sync.ui.SyncCustomizationFragment; 55 import org.chromium.chrome.browser.sync.ui.SyncCustomizationFragment;
56 import org.chromium.sync.AndroidSyncSettings; 56 import org.chromium.components.sync.AndroidSyncSettings;
57 import org.chromium.sync.signin.AccountManagerHelper; 57 import org.chromium.components.sync.signin.AccountManagerHelper;
58 import org.chromium.sync.signin.ChromeSigninController; 58 import org.chromium.components.sync.signin.ChromeSigninController;
59 59
60 import java.util.ArrayList; 60 import java.util.ArrayList;
61 import java.util.HashMap; 61 import java.util.HashMap;
62 62
63 /** 63 /**
64 * The settings screen with information and settings related to the user's accou nts. 64 * The settings screen with information and settings related to the user's accou nts.
65 * 65 *
66 * This shows which accounts the user is signed in with, allows the user to sign out of Chrome, 66 * This shows which accounts the user is signed in with, allows the user to sign out of Chrome,
67 * links to sync settings, has links to add accounts and go incognito, and shows parental settings 67 * links to sync settings, has links to add accounts and go incognito, and shows parental settings
68 * if a child account is in use. 68 * if a child account is in use.
(...skipping 678 matching lines...) Expand 10 before | Expand all | Expand 10 after
747 * @param context A context 747 * @param context A context
748 * @param isAllowed True if the sign out is not disabled due to a child/EDU account 748 * @param isAllowed True if the sign out is not disabled due to a child/EDU account
749 */ 749 */
750 public static void setSignOutAllowedPreferenceValue(Context context, boolean isAllowed) { 750 public static void setSignOutAllowedPreferenceValue(Context context, boolean isAllowed) {
751 ContextUtils.getAppSharedPreferences() 751 ContextUtils.getAppSharedPreferences()
752 .edit() 752 .edit()
753 .putBoolean(SIGN_OUT_ALLOWED, isAllowed) 753 .putBoolean(SIGN_OUT_ALLOWED, isAllowed)
754 .apply(); 754 .apply();
755 } 755 }
756 } 756 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698