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 "chrome/browser/password_manager/credential_android.h" | 10 #include "chrome/browser/password_manager/credential_android.h" |
11 #include "chrome/browser/profiles/profile.h" | 11 #include "chrome/browser/profiles/profile.h" |
12 #include "chrome/browser/sync/profile_sync_service.h" | |
13 #include "chrome/browser/sync/profile_sync_service_factory.h" | 12 #include "chrome/browser/sync/profile_sync_service_factory.h" |
14 #include "chrome/browser/ui/passwords/account_avatar_fetcher.h" | 13 #include "chrome/browser/ui/passwords/account_avatar_fetcher.h" |
15 #include "chrome/browser/ui/passwords/manage_passwords_view_utils.h" | 14 #include "chrome/browser/ui/passwords/manage_passwords_view_utils.h" |
16 #include "chrome/grit/generated_resources.h" | 15 #include "chrome/grit/generated_resources.h" |
| 16 #include "components/browser_sync/browser/profile_sync_service.h" |
17 #include "components/password_manager/core/browser/password_bubble_experiment.h" | 17 #include "components/password_manager/core/browser/password_bubble_experiment.h" |
18 #include "components/password_manager/core/common/credential_manager_types.h" | 18 #include "components/password_manager/core/common/credential_manager_types.h" |
19 #include "jni/AccountChooserDialog_jni.h" | 19 #include "jni/AccountChooserDialog_jni.h" |
20 #include "ui/android/window_android.h" | 20 #include "ui/android/window_android.h" |
21 #include "ui/base/l10n/l10n_util.h" | 21 #include "ui/base/l10n/l10n_util.h" |
22 #include "ui/gfx/android/java_bitmap.h" | 22 #include "ui/gfx/android/java_bitmap.h" |
23 #include "ui/gfx/range/range.h" | 23 #include "ui/gfx/range/range.h" |
24 | 24 |
25 using base::android::AttachCurrentThread; | 25 using base::android::AttachCurrentThread; |
26 using base::android::ConvertUTF16ToJavaString; | 26 using base::android::ConvertUTF16ToJavaString; |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 ? ui_controller_->GetCurrentForms() | 183 ? ui_controller_->GetCurrentForms() |
184 : ui_controller_->GetFederatedForms(); | 184 : ui_controller_->GetFederatedForms(); |
185 if (index < credentials_forms.size()) { | 185 if (index < credentials_forms.size()) { |
186 ui_controller_->ChooseCredential(*credentials_forms[index], type); | 186 ui_controller_->ChooseCredential(*credentials_forms[index], type); |
187 } | 187 } |
188 } | 188 } |
189 | 189 |
190 bool RegisterAccountChooserDialogAndroid(JNIEnv* env) { | 190 bool RegisterAccountChooserDialogAndroid(JNIEnv* env) { |
191 return RegisterNativesImpl(env); | 191 return RegisterNativesImpl(env); |
192 } | 192 } |
OLD | NEW |