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

Unified Diff: chrome/browser/ui/passwords/manage_passwords_ui_controller.cc

Issue 861103002: Credentials chooser UI for Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/passwords/manage_passwords_ui_controller.cc
diff --git a/chrome/browser/ui/passwords/manage_passwords_ui_controller.cc b/chrome/browser/ui/passwords/manage_passwords_ui_controller.cc
index 47e20045506d50e4ae951df35774a76a90a06ff9..6da10073caf5533b85cfefca19a1a23708a1c90e 100644
--- a/chrome/browser/ui/passwords/manage_passwords_ui_controller.cc
+++ b/chrome/browser/ui/passwords/manage_passwords_ui_controller.cc
@@ -24,6 +24,7 @@
#if defined(OS_ANDROID)
#include "chrome/browser/android/chromium_application.h"
+#include "chrome/browser/password_manager/account_chooser_infobar_delegate_android.h"
#endif
using autofill::PasswordFormMap;
@@ -128,7 +129,13 @@ bool ManagePasswordsUIController::OnChooseCredentials(
// The map is useless because usernames may overlap.
password_form_map_.clear();
SetState(password_manager::ui::CREDENTIAL_REQUEST_AND_BUBBLE_STATE);
+#if defined(OS_ANDROID)
+ AccountChooserInfoBarDelegateAndroid::Create(web_contents(), this);
+ credentials_callback_ = callback;
+ return true;
+#else
UpdateBubbleAndIconVisibility();
+#endif
if (bubble_shown_)
credentials_callback_ = callback;
return bubble_shown_;

Powered by Google App Engine
This is Rietveld 408576698