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

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

Issue 2351703003: Refactor: move components/sync/../signin to components/signin/../ (Closed)
Patch Set: rebase Created 4 years, 2 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.content.Context; 8 import android.content.Context;
9 import android.content.SharedPreferences; 9 import android.content.SharedPreferences;
10 import android.os.AsyncTask; 10 import android.os.AsyncTask;
11 11
12 import com.google.android.gms.auth.AccountChangeEvent; 12 import com.google.android.gms.auth.AccountChangeEvent;
13 import com.google.android.gms.auth.GoogleAuthException; 13 import com.google.android.gms.auth.GoogleAuthException;
14 import com.google.android.gms.auth.GoogleAuthUtil; 14 import com.google.android.gms.auth.GoogleAuthUtil;
15 15
16 import org.chromium.base.ContextUtils; 16 import org.chromium.base.ContextUtils;
17 import org.chromium.base.Log; 17 import org.chromium.base.Log;
18 import org.chromium.base.VisibleForTesting; 18 import org.chromium.base.VisibleForTesting;
19 import org.chromium.chrome.browser.invalidation.InvalidationServiceFactory; 19 import org.chromium.chrome.browser.invalidation.InvalidationServiceFactory;
20 import org.chromium.chrome.browser.preferences.ChromePreferenceManager; 20 import org.chromium.chrome.browser.preferences.ChromePreferenceManager;
21 import org.chromium.chrome.browser.preferences.PrefServiceBridge; 21 import org.chromium.chrome.browser.preferences.PrefServiceBridge;
22 import org.chromium.chrome.browser.profiles.Profile; 22 import org.chromium.chrome.browser.profiles.Profile;
23 import org.chromium.chrome.browser.signin.SigninManager.SignInCallback; 23 import org.chromium.chrome.browser.signin.SigninManager.SignInCallback;
24 import org.chromium.chrome.browser.sync.ProfileSyncService; 24 import org.chromium.chrome.browser.sync.ProfileSyncService;
25 import org.chromium.components.signin.AccountManagerHelper;
26 import org.chromium.components.signin.ChromeSigninController;
25 import org.chromium.components.sync.AndroidSyncSettings; 27 import org.chromium.components.sync.AndroidSyncSettings;
26 import org.chromium.components.sync.signin.AccountManagerHelper;
27 import org.chromium.components.sync.signin.ChromeSigninController;
28 28
29 import java.io.IOException; 29 import java.io.IOException;
30 import java.util.ArrayList; 30 import java.util.ArrayList;
31 import java.util.HashSet; 31 import java.util.HashSet;
32 import java.util.List; 32 import java.util.List;
33 import java.util.Set; 33 import java.util.Set;
34 34
35 import javax.annotation.Nullable; 35 import javax.annotation.Nullable;
36 36
37 /** 37 /**
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 .getBoolean(ACCOUNTS_CHANGED_PREFS_KEY, false)) { 387 .getBoolean(ACCOUNTS_CHANGED_PREFS_KEY, false)) {
388 // Clear the value in prefs. 388 // Clear the value in prefs.
389 ContextUtils.getAppSharedPreferences() 389 ContextUtils.getAppSharedPreferences()
390 .edit().putBoolean(ACCOUNTS_CHANGED_PREFS_KEY, false).apply( ); 390 .edit().putBoolean(ACCOUNTS_CHANGED_PREFS_KEY, false).apply( );
391 return true; 391 return true;
392 } else { 392 } else {
393 return false; 393 return false;
394 } 394 }
395 } 395 }
396 } 396 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698