OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/ui/android/infobars/account_chooser_infobar.h" | 5 #include "chrome/browser/ui/android/infobars/account_chooser_infobar.h" |
6 | 6 |
7 #include "chrome/browser/infobars/infobar_service.h" | 7 #include "chrome/browser/infobars/infobar_service.h" |
8 #include "chrome/browser/password_manager/account_chooser_infobar_delegate_andro
id.h" | 8 #include "chrome/browser/password_manager/account_chooser_infobar_delegate_andro
id.h" |
9 #include "chrome/browser/password_manager/credential_android.h" | 9 #include "chrome/browser/password_manager/credential_android.h" |
10 #include "components/password_manager/content/common/credential_manager_types.h" | 10 #include "components/password_manager/core/common/credential_manager_types.h" |
11 #include "jni/AccountChooserInfoBar_jni.h" | 11 #include "jni/AccountChooserInfoBar_jni.h" |
12 | 12 |
13 namespace { | 13 namespace { |
14 | 14 |
15 void AddElementsToJavaCredentialArray( | 15 void AddElementsToJavaCredentialArray( |
16 JNIEnv* env, | 16 JNIEnv* env, |
17 ScopedJavaLocalRef<jobjectArray> java_credentials_array, | 17 ScopedJavaLocalRef<jobjectArray> java_credentials_array, |
18 const std::vector<const autofill::PasswordForm*>& password_forms, | 18 const std::vector<const autofill::PasswordForm*>& password_forms, |
19 password_manager::CredentialType type, | 19 password_manager::CredentialType type, |
20 int indexStart = 0) { | 20 int indexStart = 0) { |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 RemoveSelf(); | 76 RemoveSelf(); |
77 } | 77 } |
78 | 78 |
79 AccountChooserInfoBarDelegateAndroid* AccountChooserInfoBar::GetDelegate() { | 79 AccountChooserInfoBarDelegateAndroid* AccountChooserInfoBar::GetDelegate() { |
80 return static_cast<AccountChooserInfoBarDelegateAndroid*>(delegate()); | 80 return static_cast<AccountChooserInfoBarDelegateAndroid*>(delegate()); |
81 } | 81 } |
82 | 82 |
83 bool RegisterAccountChooserInfoBar(JNIEnv* env) { | 83 bool RegisterAccountChooserInfoBar(JNIEnv* env) { |
84 return RegisterNativesImpl(env); | 84 return RegisterNativesImpl(env); |
85 } | 85 } |
OLD | NEW |