1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "chrome/browser/supervised_user/child_accounts/child_account_service_android.h"
7 #include "chrome/browser/browser_process.h"
8 #include "chrome/browser/profiles/profile_manager.h"
9 #include "chrome/browser/supervised_user/child_accounts/child_account_service.h"
10 #include "jni/ChildAccountService_jni.h"
12 jboolean
IsChildAccountDetectionEnabled(JNIEnv
* env
,
13 const JavaParamRef
<jclass
>& jcaller
) {
14 return ChildAccountService::IsChildAccountDetectionEnabled();
17 jboolean
IsChildAccount(JNIEnv
* env
, const JavaParamRef
<jclass
>& jcaller
) {
18 ProfileManager
* profile_manager
= g_browser_process
->profile_manager();
19 return profile_manager
->GetLastUsedProfile()->IsChild();
22 bool RegisterChildAccountService(JNIEnv
* env
) {
23 return RegisterNativesImpl(env
);