Commit 9fa908a1 authored by newt's avatar newt Committed by Commit bot

Ensure AndroidEduOwnerCheckCallback is called.

ChromiumApplication.AndroidEduOwnerCheckCallback() has a stub
implementation that doesn't actually call the passed in callback. This
fixes the stub to actually call the callback with a value of false, which
fixes code that depends on this callback being called.

BUG=489514

Review URL: https://codereview.chromium.org/1132723009

Cr-Commit-Position: refs/heads/master@{#330467}
parent 75883e44
......@@ -9,6 +9,8 @@ import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.os.Handler;
import android.os.Looper;
import android.os.SystemClock;
import android.preference.PreferenceManager;
import android.util.Log;
......@@ -66,7 +68,13 @@ public abstract class ChromiumApplication extends ContentApplication {
* Initiate AndroidEdu device check.
* @param callback Callback that should receive the results of the AndroidEdu device check.
*/
public void checkIsAndroidEduDevice(AndroidEduOwnerCheckCallback callback) {
public void checkIsAndroidEduDevice(final AndroidEduOwnerCheckCallback callback) {
new Handler(Looper.getMainLooper()).post(new Runnable() {
@Override
public void run() {
callback.onSchoolCheckDone(false);
}
});
}
/**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment