| Index: blimp/client/core/android/java/src/org/chromium/blimp/core/BlimpClientContextImpl.java
|
| diff --git a/blimp/client/core/android/java/src/org/chromium/blimp/core/BlimpClientContextImpl.java b/blimp/client/core/android/java/src/org/chromium/blimp/core/BlimpClientContextImpl.java
|
| index a71d95bedd80c8c50d0b44b3c94228c647332e5d..2a0e6ad036b33bdb001fdc802104f3b18b91a362 100644
|
| --- a/blimp/client/core/android/java/src/org/chromium/blimp/core/BlimpClientContextImpl.java
|
| +++ b/blimp/client/core/android/java/src/org/chromium/blimp/core/BlimpClientContextImpl.java
|
| @@ -8,6 +8,8 @@ import android.preference.PreferenceFragment;
|
|
|
| import org.chromium.base.annotations.CalledByNative;
|
| import org.chromium.base.annotations.JNINamespace;
|
| +import org.chromium.blimp.core.auth.Authenticator;
|
| +import org.chromium.blimp.core.common.PreferencesUtil;
|
| import org.chromium.blimp.core.settings.AboutBlimpPreferences;
|
| import org.chromium.blimp_public.BlimpClientContext;
|
| import org.chromium.blimp_public.BlimpClientContextDelegate;
|
| @@ -24,6 +26,8 @@ public class BlimpClientContextImpl implements BlimpClientContext {
|
| // Delegate that contains functions Blimp needed in the embedder.
|
| private BlimpClientContextDelegate mDelegate;
|
|
|
| + private Authenticator mAuthenticator = new Authenticator(this);
|
| +
|
| /**
|
| * Get embedder delegate which provides necessary functionality and callbacks.
|
| *
|
| @@ -72,6 +76,15 @@ public class BlimpClientContextImpl implements BlimpClientContext {
|
| AboutBlimpPreferences.registerCallback(callbacks);
|
| }
|
|
|
| + @Override
|
| + public void connect(String clientToken) {
|
| + }
|
| +
|
| + @Override
|
| + public void getAuthToken() {
|
| + if (PreferencesUtil.isBlimpEnabled()) mAuthenticator.getAuthToken();
|
| + }
|
| +
|
| @CalledByNative
|
| private void clearNativePtr() {
|
| mNativeBlimpClientContextImplAndroid = 0;
|
|
|