| Index: chrome/android/java/src/org/chromium/chrome/browser/signin/AccountIdProvider.java
|
| diff --git a/chrome/android/java/src/org/chromium/chrome/browser/signin/AccountIdProvider.java b/chrome/android/java/src/org/chromium/chrome/browser/signin/AccountIdProvider.java
|
| index 902c22b0e78073a0f3c9c04fb2ee27c8fe7481b1..423409da02eae5e19f6b971f2c62a95ed30e79f1 100644
|
| --- a/chrome/android/java/src/org/chromium/chrome/browser/signin/AccountIdProvider.java
|
| +++ b/chrome/android/java/src/org/chromium/chrome/browser/signin/AccountIdProvider.java
|
| @@ -4,7 +4,6 @@
|
|
|
| package org.chromium.chrome.browser.signin;
|
|
|
| -import android.app.Activity;
|
| import android.content.Context;
|
|
|
| import com.google.android.gms.auth.GoogleAuthException;
|
| @@ -18,8 +17,6 @@ import org.chromium.chrome.browser.externalauth.UserRecoverableErrorHandler;
|
|
|
| import java.io.IOException;
|
|
|
| -import javax.annotation.Nullable;
|
| -
|
| /**
|
| * Returns a stable id that can be used to identify a Google Account. This
|
| * id does not change if the email address associated to the account changes,
|
| @@ -55,15 +52,10 @@ public class AccountIdProvider {
|
| * Returns whether the AccountIdProvider can be used.
|
| * Since the AccountIdProvider queries Google Play services, this basically checks whether
|
| * Google Play services is available.
|
| - *
|
| - * @param activity If an activity is provided, it will be used to show a Modal Dialog notifying
|
| - * the user to update Google Play services, else a System notification is shown.
|
| */
|
| - public boolean canBeUsed(Context ctx, @Nullable Activity activity) {
|
| - UserRecoverableErrorHandler errorHandler = activity != null
|
| - ? new UserRecoverableErrorHandler.ModalDialog(activity)
|
| - : new UserRecoverableErrorHandler.SystemNotification();
|
| - return ExternalAuthUtils.getInstance().canUseGooglePlayServices(ctx, errorHandler);
|
| + public boolean canBeUsed(Context ctx) {
|
| + return ExternalAuthUtils.getInstance().canUseGooglePlayServices(
|
| + ctx, new UserRecoverableErrorHandler.Silent());
|
| }
|
|
|
| /**
|
|
|