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

Unified Diff: chrome/browser/password_manager/update_password_infobar_delegate_android.cc

Issue 2298733003: Removing Nope button in Update password prompt according to mocks. (Closed)
Patch Set: Overriding GetButtons Created 4 years, 3 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/password_manager/update_password_infobar_delegate_android.cc
diff --git a/chrome/browser/password_manager/update_password_infobar_delegate_android.cc b/chrome/browser/password_manager/update_password_infobar_delegate_android.cc
index 56b8e17c63249a0e27d6ac4cafe1e3114342c953..c4fdc05c0b33eac62b7ee4edd8c08e9fc075e08a 100644
--- a/chrome/browser/password_manager/update_password_infobar_delegate_android.cc
+++ b/chrome/browser/password_manager/update_password_infobar_delegate_android.cc
@@ -82,11 +82,13 @@ UpdatePasswordInfoBarDelegate::GetIdentifier() const {
return UPDATE_PASSWORD_INFOBAR_DELEGATE;
}
+int UpdatePasswordInfoBarDelegate::GetButtons() const {
+ return BUTTON_OK;
+}
+
base::string16 UpdatePasswordInfoBarDelegate::GetButtonLabel(
InfoBarButton button) const {
- return l10n_util::GetStringUTF16((button == BUTTON_OK)
- ? IDS_PASSWORD_MANAGER_UPDATE_BUTTON
- : IDS_PASSWORD_MANAGER_CANCEL_BUTTON);
+ return l10n_util::GetStringUTF16(IDS_PASSWORD_MANAGER_UPDATE_BUTTON);
}
bool UpdatePasswordInfoBarDelegate::Accept() {

Powered by Google App Engine
This is Rietveld 408576698