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

Unified 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 side-by-side diff with in-line comments
Download patch
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);
+}
« 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