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

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

Issue 1841653003: Drop |languages| from {Format,Elide}Url* and IDNToUnicode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix typo in elide_url.cc 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 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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 env, java_credentials_array, federated_credentials_forms(), 143 env, java_credentials_array, federated_credentials_forms(),
144 password_manager::CredentialType::CREDENTIAL_TYPE_FEDERATED, 144 password_manager::CredentialType::CREDENTIAL_TYPE_FEDERATED,
145 local_credentials_forms().size()); 145 local_credentials_forms().size());
146 base::android::ScopedJavaGlobalRef<jobject> java_dialog_global; 146 base::android::ScopedJavaGlobalRef<jobject> java_dialog_global;
147 java_dialog_global.Reset(Java_AccountChooserDialog_createAccountChooser( 147 java_dialog_global.Reset(Java_AccountChooserDialog_createAccountChooser(
148 env, native_window->GetJavaObject().obj(), 148 env, native_window->GetJavaObject().obj(),
149 reinterpret_cast<intptr_t>(this), java_credentials_array.obj(), 149 reinterpret_cast<intptr_t>(this), java_credentials_array.obj(),
150 base::android::ConvertUTF16ToJavaString(env, title).obj(), 150 base::android::ConvertUTF16ToJavaString(env, title).obj(),
151 title_link_range.start(), title_link_range.end(), 151 title_link_range.start(), title_link_range.end(),
152 base::android::ConvertUTF8ToJavaString( 152 base::android::ConvertUTF8ToJavaString(
153 env, password_manager::GetShownOrigin(origin_, std::string())) 153 env, password_manager::GetShownOrigin(origin_))
154 .obj())); 154 .obj()));
155 base::android::ScopedJavaLocalRef<jobject> java_dialog(java_dialog_global); 155 base::android::ScopedJavaLocalRef<jobject> java_dialog(java_dialog_global);
156 net::URLRequestContextGetter* request_context = 156 net::URLRequestContextGetter* request_context =
157 Profile::FromBrowserContext(web_contents_->GetBrowserContext()) 157 Profile::FromBrowserContext(web_contents_->GetBrowserContext())
158 ->GetRequestContext(); 158 ->GetRequestContext();
159 FetchAvatars(java_dialog_global, local_credentials_forms(), 0, 159 FetchAvatars(java_dialog_global, local_credentials_forms(), 0,
160 request_context); 160 request_context);
161 FetchAvatars(java_dialog_global, federated_credentials_forms(), 161 FetchAvatars(java_dialog_global, federated_credentials_forms(),
162 local_credentials_forms().size(), request_context); 162 local_credentials_forms().size(), request_context);
163 } 163 }
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 ? local_credentials_forms() 216 ? local_credentials_forms()
217 : federated_credentials_forms(); 217 : federated_credentials_forms();
218 if (index < credentials_forms.size()) { 218 if (index < credentials_forms.size()) {
219 passwords_data_.ChooseCredential(credentials_forms[index]); 219 passwords_data_.ChooseCredential(credentials_forms[index]);
220 } 220 }
221 } 221 }
222 222
223 bool RegisterAccountChooserDialogAndroid(JNIEnv* env) { 223 bool RegisterAccountChooserDialogAndroid(JNIEnv* env) {
224 return RegisterNativesImpl(env); 224 return RegisterNativesImpl(env);
225 } 225 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698