Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(52)

Side by Side Diff: chrome/browser/supervised_user/child_accounts/child_account_service_android.cc

Issue 789853002: Add support for child accounts on Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: x Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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.
4
5 #include "chrome/browser/supervised_user/child_accounts/child_account_service_an droid.h"
6
7 #include "chrome/browser/profiles/profile_manager.h"
8 #include "chrome/browser/supervised_user/child_accounts/child_account_service.h"
9 #include "chrome/browser/supervised_user/child_accounts/child_account_service_fa ctory.h"
10 #include "jni/ChildAccountService_jni.h"
11
12 void OnChildAccountSigninComplete(JNIEnv* env, jobject obj) {
13 VLOG(1) << "OnChildAccountSigninComplete";
14
15 Profile* profile = ProfileManager::GetLastUsedProfile();
16 ChildAccountServiceFactory::GetForProfile(profile)->SetIsChildAccount(true);
17 }
18
19 bool RegisterChildAccountService(JNIEnv* env) {
20 return RegisterNativesImpl(env);
21 }
OLDNEW
« no previous file with comments | « chrome/browser/supervised_user/child_accounts/child_account_service_android.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698