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

Side by Side Diff: chrome/browser/ui/android/infobars/update_password_infobar.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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/update_password_infobar.h" 5 #include "chrome/browser/ui/android/infobars/update_password_infobar.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/android/jni_android.h" 9 #include "base/android/jni_android.h"
10 #include "base/android/jni_array.h" 10 #include "base/android/jni_array.h"
11 #include "base/android/jni_string.h" 11 #include "base/android/jni_string.h"
12 #include "chrome/browser/password_manager/update_password_infobar_delegate_andro id.h" 12 #include "chrome/browser/password_manager/update_password_infobar_delegate_andro id.h"
13 #include "components/password_manager/core/common/credential_manager_types.h" 13 #include "components/password_manager/core/common/credential_manager_types.h"
14 #include "jni/UpdatePasswordInfoBar_jni.h" 14 #include "jni/UpdatePasswordInfoBar_jni.h"
15 15
16 using base::android::JavaParamRef;
17
16 UpdatePasswordInfoBar::UpdatePasswordInfoBar( 18 UpdatePasswordInfoBar::UpdatePasswordInfoBar(
17 std::unique_ptr<UpdatePasswordInfoBarDelegate> delegate) 19 std::unique_ptr<UpdatePasswordInfoBarDelegate> delegate)
18 : ConfirmInfoBar(std::move(delegate)) {} 20 : ConfirmInfoBar(std::move(delegate)) {}
19 21
20 UpdatePasswordInfoBar::~UpdatePasswordInfoBar() {} 22 UpdatePasswordInfoBar::~UpdatePasswordInfoBar() {}
21 23
22 int UpdatePasswordInfoBar::GetIdOfSelectedUsername() const { 24 int UpdatePasswordInfoBar::GetIdOfSelectedUsername() const {
23 return Java_UpdatePasswordInfoBar_getSelectedUsername( 25 return Java_UpdatePasswordInfoBar_getSelectedUsername(
24 base::android::AttachCurrentThread(), java_infobar_.obj()); 26 base::android::AttachCurrentThread(), java_infobar_.obj());
25 } 27 }
(...skipping 29 matching lines...) Expand all
55 update_password_delegate->is_smartlock_branding_enabled())); 57 update_password_delegate->is_smartlock_branding_enabled()));
56 58
57 java_infobar_.Reset(env, infobar.obj()); 59 java_infobar_.Reset(env, infobar.obj());
58 return infobar; 60 return infobar;
59 } 61 }
60 62
61 void UpdatePasswordInfoBar::OnLinkClicked(JNIEnv* env, 63 void UpdatePasswordInfoBar::OnLinkClicked(JNIEnv* env,
62 const JavaParamRef<jobject>& obj) { 64 const JavaParamRef<jobject>& obj) {
63 GetDelegate()->LinkClicked(NEW_FOREGROUND_TAB); 65 GetDelegate()->LinkClicked(NEW_FOREGROUND_TAB);
64 } 66 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698