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

Side by Side Diff: chrome/browser/password_manager/account_chooser_dialog_android.cc

Issue 2209993003: Add missing using statements for JNI types. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months 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 unified diff | Download patch
OLDNEW
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 <utility> 7 #include <utility>
8 8
9 #include "base/android/jni_android.h" 9 #include "base/android/jni_android.h"
10 #include "base/android/jni_string.h" 10 #include "base/android/jni_string.h"
(...skipping 13 matching lines...) Expand all
24 #include "components/password_manager/core/browser/password_ui_utils.h" 24 #include "components/password_manager/core/browser/password_ui_utils.h"
25 #include "components/password_manager/core/common/credential_manager_types.h" 25 #include "components/password_manager/core/common/credential_manager_types.h"
26 #include "jni/AccountChooserDialog_jni.h" 26 #include "jni/AccountChooserDialog_jni.h"
27 #include "ui/android/window_android.h" 27 #include "ui/android/window_android.h"
28 #include "ui/base/l10n/l10n_util.h" 28 #include "ui/base/l10n/l10n_util.h"
29 #include "ui/gfx/android/java_bitmap.h" 29 #include "ui/gfx/android/java_bitmap.h"
30 #include "ui/gfx/range/range.h" 30 #include "ui/gfx/range/range.h"
31 31
32 using base::android::AttachCurrentThread; 32 using base::android::AttachCurrentThread;
33 using base::android::ConvertUTF16ToJavaString; 33 using base::android::ConvertUTF16ToJavaString;
34 using base::android::JavaParamRef;
35 using base::android::ScopedJavaLocalRef;
34 36
35 namespace { 37 namespace {
36 38
37 void AddElementsToJavaCredentialArray( 39 void AddElementsToJavaCredentialArray(
38 JNIEnv* env, 40 JNIEnv* env,
39 ScopedJavaLocalRef<jobjectArray> java_credentials_array, 41 ScopedJavaLocalRef<jobjectArray> java_credentials_array,
40 const std::vector<const autofill::PasswordForm*>& password_forms, 42 const std::vector<const autofill::PasswordForm*>& password_forms,
41 password_manager::CredentialType type, 43 password_manager::CredentialType type,
42 int indexStart = 0) { 44 int indexStart = 0) {
43 int index = indexStart; 45 int index = indexStart;
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 action); 258 action);
257 } else { 259 } else {
258 password_manager::metrics_util::LogAccountChooserUserActionManyAccounts( 260 password_manager::metrics_util::LogAccountChooserUserActionManyAccounts(
259 action); 261 action);
260 } 262 }
261 } 263 }
262 264
263 bool RegisterAccountChooserDialogAndroid(JNIEnv* env) { 265 bool RegisterAccountChooserDialogAndroid(JNIEnv* env) {
264 return RegisterNativesImpl(env); 266 return RegisterNativesImpl(env);
265 } 267 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698