Commit 137a169e authored by Alice Wang's avatar Alice Wang Committed by Chromium LUCI CQ

[Android][ChildAccount] Remove unused method in ChildAccountService

This CL removes the unused method in ChildAccountService. The method
was added before 2015.

Bug: 1161702
Change-Id: I7b6596b987a8b8b1203041a6fde138d8f92b1351
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2612997Reviewed-by: default avatarMihai Sardarescu <msarda@chromium.org>
Reviewed-by: default avatarBoris Sazonov <bsazonov@chromium.org>
Commit-Queue: Alice Wang <aliceywang@chromium.org>
Cr-Commit-Position: refs/heads/master@{#841027}
parent 5114425d
......@@ -55,14 +55,6 @@ public class ChildAccountService {
});
}
/**
* Set a callback to be called the next time a child account status change is received
* @param callback the callback to be called when the status changes.
*/
public static void listenForStatusChange(Callback<Boolean> callback) {
ChildAccountServiceJni.get().listenForChildStatusReceived(callback);
}
@CalledByNative
private static void reauthenticateChildAccount(
WindowAndroid windowAndroid, String accountName, final long nativeCallback) {
......@@ -85,7 +77,6 @@ public class ChildAccountService {
@NativeMethods
interface Natives {
void listenForChildStatusReceived(Callback<Boolean> callback);
void onReauthenticationResult(long callbackPtr, boolean reauthSuccessful);
}
}
......@@ -11,9 +11,7 @@
#include "base/bind.h"
#include "chrome/android/chrome_jni_headers/ChildAccountService_jni.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/profiles/profile_manager.h"
#include "chrome/browser/supervised_user/child_accounts/child_account_service.h"
#include "chrome/browser/supervised_user/child_accounts/child_account_service_factory.h"
#include "content/public/browser/web_contents.h"
#include "ui/android/window_android.h"
......@@ -24,17 +22,6 @@ using base::android::JavaRef;
using base::android::RunBooleanCallbackAndroid;
using base::android::ScopedJavaGlobalRef;
void JNI_ChildAccountService_ListenForChildStatusReceived(
JNIEnv* env,
const JavaParamRef<jobject>& callback) {
ProfileManager* profile_manager = g_browser_process->profile_manager();
ChildAccountService* service = ChildAccountServiceFactory::GetForProfile(
profile_manager->GetLastUsedProfile());
service->AddChildStatusReceivedCallback(
base::BindOnce(&RunBooleanCallbackAndroid,
ScopedJavaGlobalRef<jobject>(callback), true));
}
void ReauthenticateChildAccount(
content::WebContents* web_contents,
const std::string& email,
......
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