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

Unified Diff: chrome/browser/ui/autofill/password_generation_popup_controller_impl.cc

Issue 656663004: [android] Show saved password settings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@tiny-no-hide
Patch Set: Created 6 years, 2 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/autofill/password_generation_popup_controller_impl.cc
diff --git a/chrome/browser/ui/autofill/password_generation_popup_controller_impl.cc b/chrome/browser/ui/autofill/password_generation_popup_controller_impl.cc
index a2a2c7f924588f0fe188d36aa85dfb3200d71e0f..05f7f9881bb3780ca1067e6f44ad403c3e057f2f 100644
--- a/chrome/browser/ui/autofill/password_generation_popup_controller_impl.cc
+++ b/chrome/browser/ui/autofill/password_generation_popup_controller_impl.cc
@@ -31,6 +31,10 @@
#include "ui/gfx/rect_conversions.h"
#include "ui/gfx/text_utils.h"
+#if defined(OS_ANDROID)
+#include "chrome/browser/android/chromium_application.h"
+#endif
+
namespace autofill {
base::WeakPtr<PasswordGenerationPopupControllerImpl>
@@ -214,9 +218,13 @@ void PasswordGenerationPopupControllerImpl::ViewDestroyed() {
}
void PasswordGenerationPopupControllerImpl::OnSavedPasswordsLinkClicked() {
+#if defined(OS_ANDROID)
+ chrome::android::ChromiumApplication::ShowPasswordSettings();
+#else
chrome::ShowSettingsSubPage(
chrome::FindBrowserWithWebContents(controller_common_.web_contents()),
chrome::kPasswordManagerSubPage);
+#endif
}
void PasswordGenerationPopupControllerImpl::SetSelectionAtPoint(
« no previous file with comments | « chrome/browser/android/chromium_application.cc ('k') | chrome/browser/ui/passwords/manage_passwords_ui_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698