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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/signin/OAuth2TokenService.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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.os.StrictMode; 9 import android.os.StrictMode;
10 import android.util.Log; 10 import android.util.Log;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 * implement this interface and register with {@link #addObserver}. 44 * implement this interface and register with {@link #addObserver}.
45 */ 45 */
46 public interface OAuth2TokenServiceObserver { 46 public interface OAuth2TokenServiceObserver {
47 void onRefreshTokenAvailable(Account account); 47 void onRefreshTokenAvailable(Account account);
48 void onRefreshTokenRevoked(Account account); 48 void onRefreshTokenRevoked(Account account);
49 void onRefreshTokensLoaded(); 49 void onRefreshTokensLoaded();
50 } 50 }
51 51
52 private static final String OAUTH2_SCOPE_PREFIX = "oauth2:"; 52 private static final String OAUTH2_SCOPE_PREFIX = "oauth2:";
53 53
54 private Context mPendingValidationContext = null; 54 private Context mPendingValidationContext;
55 private boolean mPendingValidationForceNotifications = false; 55 private boolean mPendingValidationForceNotifications;
56 56
57 private final long mNativeOAuth2TokenServiceDelegateAndroid; 57 private final long mNativeOAuth2TokenServiceDelegateAndroid;
58 private final ObserverList<OAuth2TokenServiceObserver> mObservers; 58 private final ObserverList<OAuth2TokenServiceObserver> mObservers;
59 59
60 private OAuth2TokenService(Context context, long nativeOAuth2Service) { 60 private OAuth2TokenService(Context context, long nativeOAuth2Service) {
61 mNativeOAuth2TokenServiceDelegateAndroid = nativeOAuth2Service; 61 mNativeOAuth2TokenServiceDelegateAndroid = nativeOAuth2Service;
62 mObservers = new ObserverList<OAuth2TokenServiceObserver>(); 62 mObservers = new ObserverList<OAuth2TokenServiceObserver>();
63 AccountTrackerService.get(context).addSystemAccountsSeededListener(this) ; 63 AccountTrackerService.get(context).addSystemAccountsSeededListener(this) ;
64 } 64 }
65 65
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 String authToken, boolean isTransientError, long nativeCallback); 385 String authToken, boolean isTransientError, long nativeCallback);
386 private native void nativeValidateAccounts(long nativeOAuth2TokenServiceDele gateAndroid, 386 private native void nativeValidateAccounts(long nativeOAuth2TokenServiceDele gateAndroid,
387 String currentlySignedInAccount, boolean forceNotifications); 387 String currentlySignedInAccount, boolean forceNotifications);
388 private native void nativeFireRefreshTokenAvailableFromJava( 388 private native void nativeFireRefreshTokenAvailableFromJava(
389 long nativeOAuth2TokenServiceDelegateAndroid, String accountName); 389 long nativeOAuth2TokenServiceDelegateAndroid, String accountName);
390 private native void nativeFireRefreshTokenRevokedFromJava( 390 private native void nativeFireRefreshTokenRevokedFromJava(
391 long nativeOAuth2TokenServiceDelegateAndroid, String accountName); 391 long nativeOAuth2TokenServiceDelegateAndroid, String accountName);
392 private native void nativeFireRefreshTokensLoadedFromJava( 392 private native void nativeFireRefreshTokensLoadedFromJava(
393 long nativeOAuth2TokenServiceDelegateAndroid); 393 long nativeOAuth2TokenServiceDelegateAndroid);
394 } 394 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698