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/password_manager/account_chooser_dialog_android.h" | 5 #include "chrome/browser/password_manager/account_chooser_dialog_android.h" |
6 | 6 |
7 #include "base/android/jni_android.h" | 7 #include "base/android/jni_android.h" |
8 #include "base/android/jni_string.h" | 8 #include "base/android/jni_string.h" |
9 #include "base/android/scoped_java_ref.h" | 9 #include "base/android/scoped_java_ref.h" |
| 10 #include "base/macros.h" |
10 #include "chrome/browser/password_manager/chrome_password_manager_client.h" | 11 #include "chrome/browser/password_manager/chrome_password_manager_client.h" |
11 #include "chrome/browser/password_manager/credential_android.h" | 12 #include "chrome/browser/password_manager/credential_android.h" |
12 #include "chrome/browser/profiles/profile.h" | 13 #include "chrome/browser/profiles/profile.h" |
13 #include "chrome/browser/sync/profile_sync_service_factory.h" | 14 #include "chrome/browser/sync/profile_sync_service_factory.h" |
14 #include "chrome/browser/ui/passwords/account_avatar_fetcher.h" | 15 #include "chrome/browser/ui/passwords/account_avatar_fetcher.h" |
15 #include "chrome/browser/ui/passwords/manage_passwords_view_utils.h" | 16 #include "chrome/browser/ui/passwords/manage_passwords_view_utils.h" |
16 #include "chrome/grit/generated_resources.h" | 17 #include "chrome/grit/generated_resources.h" |
17 #include "components/browser_sync/browser/profile_sync_service.h" | 18 #include "components/browser_sync/browser/profile_sync_service.h" |
18 #include "components/password_manager/core/browser/password_bubble_experiment.h" | 19 #include "components/password_manager/core/browser/password_bubble_experiment.h" |
19 #include "components/password_manager/core/browser/password_manager_constants.h" | 20 #include "components/password_manager/core/browser/password_manager_constants.h" |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 ? local_credentials_forms() | 210 ? local_credentials_forms() |
210 : federated_credentials_forms(); | 211 : federated_credentials_forms(); |
211 if (index < credentials_forms.size()) { | 212 if (index < credentials_forms.size()) { |
212 passwords_data_.ChooseCredential(*credentials_forms[index], type); | 213 passwords_data_.ChooseCredential(*credentials_forms[index], type); |
213 } | 214 } |
214 } | 215 } |
215 | 216 |
216 bool RegisterAccountChooserDialogAndroid(JNIEnv* env) { | 217 bool RegisterAccountChooserDialogAndroid(JNIEnv* env) { |
217 return RegisterNativesImpl(env); | 218 return RegisterNativesImpl(env); |
218 } | 219 } |
OLD | NEW |