Alex Clarke | a4e9aa9e | 2019-10-07 15:20:33 | [diff] [blame^] | 1 | // Copyright 2019 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/profiles/profile_manager_android.h" |
| 6 | |
| 7 | #include "chrome/android/public/profiles/jni_headers/ProfileManager_jni.h" |
| 8 | #include "chrome/browser/profiles/profile_android.h" |
| 9 | |
| 10 | ProfileManagerAndroid::ProfileManagerAndroid() = default; |
| 11 | |
| 12 | ProfileManagerAndroid::~ProfileManagerAndroid() = default; |
| 13 | |
| 14 | void ProfileManagerAndroid::OnProfileAdded(Profile* profile) { |
| 15 | Java_ProfileManager_onProfileAdded( |
| 16 | base::android::AttachCurrentThread(), |
| 17 | ProfileAndroid::FromProfile(profile)->GetJavaObject()); |
| 18 | } |
| 19 | |
| 20 | void ProfileManagerAndroid::OnProfileMarkedForPermanentDeletion( |
| 21 | Profile* profile) {} |