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

Side by Side Diff: chrome/browser/android/password_ui_view_android.cc

Issue 1846623002: Remove password-manager-reauthentication flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Just rebased Created 4 years, 8 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/android/password_ui_view_android.h" 5 #include "chrome/browser/android/password_ui_view_android.h"
6 6
7 #include "base/android/jni_string.h" 7 #include "base/android/jni_string.h"
8 #include "base/android/jni_weak_ref.h" 8 #include "base/android/jni_weak_ref.h"
9 #include "base/metrics/field_trial.h" 9 #include "base/metrics/field_trial.h"
10 #include "chrome/browser/profiles/profile_manager.h" 10 #include "chrome/browser/profiles/profile_manager.h"
(...skipping 27 matching lines...) Expand all
38 38
39 void PasswordUIViewAndroid::ShowPassword( 39 void PasswordUIViewAndroid::ShowPassword(
40 size_t index, 40 size_t index,
41 const std::string& origin_url, 41 const std::string& origin_url,
42 const std::string& username, 42 const std::string& username,
43 const base::string16& password_value) { 43 const base::string16& password_value) {
44 NOTIMPLEMENTED(); 44 NOTIMPLEMENTED();
45 } 45 }
46 46
47 void PasswordUIViewAndroid::SetPasswordList( 47 void PasswordUIViewAndroid::SetPasswordList(
48 const std::vector<scoped_ptr<autofill::PasswordForm>>& password_list, 48 const std::vector<scoped_ptr<autofill::PasswordForm>>& password_list) {
49 bool show_passwords) {
50 // Android just ignores the |show_passwords| argument.
51 JNIEnv* env = base::android::AttachCurrentThread(); 49 JNIEnv* env = base::android::AttachCurrentThread();
52 ScopedJavaLocalRef<jobject> ui_controller = weak_java_ui_controller_.get(env); 50 ScopedJavaLocalRef<jobject> ui_controller = weak_java_ui_controller_.get(env);
53 if (!ui_controller.is_null()) { 51 if (!ui_controller.is_null()) {
54 Java_PasswordUIView_passwordListAvailable( 52 Java_PasswordUIView_passwordListAvailable(
55 env, ui_controller.obj(), static_cast<int>(password_list.size())); 53 env, ui_controller.obj(), static_cast<int>(password_list.size()));
56 } 54 }
57 } 55 }
58 56
59 void PasswordUIViewAndroid::SetPasswordExceptionList( 57 void PasswordUIViewAndroid::SetPasswordExceptionList(
60 const std::vector<scoped_ptr<autofill::PasswordForm>>& 58 const std::vector<scoped_ptr<autofill::PasswordForm>>&
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 135
138 // static 136 // static
139 static jlong Init(JNIEnv* env, const JavaParamRef<jobject>& obj) { 137 static jlong Init(JNIEnv* env, const JavaParamRef<jobject>& obj) {
140 PasswordUIViewAndroid* controller = new PasswordUIViewAndroid(env, obj); 138 PasswordUIViewAndroid* controller = new PasswordUIViewAndroid(env, obj);
141 return reinterpret_cast<intptr_t>(controller); 139 return reinterpret_cast<intptr_t>(controller);
142 } 140 }
143 141
144 bool PasswordUIViewAndroid::RegisterPasswordUIViewAndroid(JNIEnv* env) { 142 bool PasswordUIViewAndroid::RegisterPasswordUIViewAndroid(JNIEnv* env) {
145 return RegisterNativesImpl(env); 143 return RegisterNativesImpl(env);
146 } 144 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698