| Index: chrome/browser/supervised_user/child_accounts/child_account_service_android.cc
|
| diff --git a/chrome/browser/supervised_user/child_accounts/child_account_service_android.cc b/chrome/browser/supervised_user/child_accounts/child_account_service_android.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..b4243c20f671b7b8603b2b5ccb18a90ba7c043a1
|
| --- /dev/null
|
| +++ b/chrome/browser/supervised_user/child_accounts/child_account_service_android.cc
|
| @@ -0,0 +1,21 @@
|
| +// Copyright 2014 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "chrome/browser/supervised_user/child_accounts/child_account_service_android.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 "jni/ChildAccountService_jni.h"
|
| +
|
| +void OnChildAccountSigninComplete(JNIEnv* env, jobject obj) {
|
| + VLOG(1) << "OnChildAccountSigninComplete";
|
| +
|
| + Profile* profile = ProfileManager::GetLastUsedProfile();
|
| + ChildAccountServiceFactory::GetForProfile(profile)->SetIsChildAccount(true);
|
| +}
|
| +
|
| +bool RegisterChildAccountService(JNIEnv* env) {
|
| + return RegisterNativesImpl(env);
|
| +}
|
|
|