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

Unified Diff: components/sync/android/java/src/org/chromium/components/sync/signin/SystemAccountManagerDelegate.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, 5 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 side-by-side diff with in-line comments
Download patch
Index: components/sync/android/java/src/org/chromium/components/sync/signin/SystemAccountManagerDelegate.java
diff --git a/sync/android/java/src/org/chromium/sync/signin/SystemAccountManagerDelegate.java b/components/sync/android/java/src/org/chromium/components/sync/signin/SystemAccountManagerDelegate.java
similarity index 96%
rename from sync/android/java/src/org/chromium/sync/signin/SystemAccountManagerDelegate.java
rename to components/sync/android/java/src/org/chromium/components/sync/signin/SystemAccountManagerDelegate.java
index bc9630cb7e74c430158c7877d56a4d151da4b019..28a253aa68002fe5d610820d21eeb07ed483c146 100644
--- a/sync/android/java/src/org/chromium/sync/signin/SystemAccountManagerDelegate.java
+++ b/components/sync/android/java/src/org/chromium/components/sync/signin/SystemAccountManagerDelegate.java
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-package org.chromium.sync.signin;
+package org.chromium.components.sync.signin;
import android.accounts.Account;
import android.accounts.AccountManager;
@@ -35,7 +35,6 @@ import java.util.concurrent.TimeUnit;
*/
@MainDex
public class SystemAccountManagerDelegate implements AccountManagerDelegate {
-
private final AccountManager mAccountManager;
private final Context mApplicationContext;
private static final String TAG = "Auth";
@@ -48,7 +47,7 @@ public class SystemAccountManagerDelegate implements AccountManagerDelegate {
@Override
public Account[] getAccountsByType(String type) {
if (!AccountManagerHelper.get(mApplicationContext).hasGetAccountsPermission()) {
- return new Account[]{};
+ return new Account[] {};
}
long now = SystemClock.elapsedRealtime();
Account[] accounts = mAccountManager.getAccountsByType(type);
@@ -77,8 +76,8 @@ public class SystemAccountManagerDelegate implements AccountManagerDelegate {
assert !ThreadUtils.runningOnUiThread();
assert AccountManagerHelper.GOOGLE_ACCOUNT_TYPE.equals(account.type);
try {
- return GoogleAuthUtil.getTokenWithNotification(mApplicationContext, account,
- authTokenScope, null);
+ return GoogleAuthUtil.getTokenWithNotification(
+ mApplicationContext, account, authTokenScope, null);
} catch (GoogleAuthException ex) {
// This case includes a UserRecoverableNotifiedException, but most clients will have
// their own retry mechanism anyway.

Powered by Google App Engine
This is Rietveld 408576698