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

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

Issue 1402463004: [Smart Lock, UI] Change cancel button to Never, save prompt. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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/password_manager/save_password_infobar_delegate.cc
diff --git a/chrome/browser/password_manager/save_password_infobar_delegate.cc b/chrome/browser/password_manager/save_password_infobar_delegate.cc
index 3841aed22c45fca80f18ca2bbedb9ef28001864e..afa1a7c2dc124fb40277d50c701bf5cbda1434a4 100644
--- a/chrome/browser/password_manager/save_password_infobar_delegate.cc
+++ b/chrome/browser/password_manager/save_password_infobar_delegate.cc
@@ -22,10 +22,7 @@
namespace {
int GetCancelButtonText(password_manager::CredentialSourceType source_type) {
- return source_type ==
- password_manager::CredentialSourceType::CREDENTIAL_SOURCE_API
- ? IDS_PASSWORD_MANAGER_SAVE_PASSWORD_SMART_LOCK_NO_THANKS_BUTTON
- : IDS_PASSWORD_MANAGER_BLACKLIST_BUTTON;
+ return IDS_PASSWORD_MANAGER_BLACKLIST_BUTTON;
}
} // namespace
@@ -140,12 +137,7 @@ bool SavePasswordInfoBarDelegate::Accept() {
bool SavePasswordInfoBarDelegate::Cancel() {
DCHECK(form_to_save_.get());
- if (source_type_ ==
- password_manager::CredentialSourceType::CREDENTIAL_SOURCE_API) {
- InfoBarDismissed();
- } else {
- form_to_save_->PermanentlyBlacklist();
- infobar_response_ = password_manager::metrics_util::NEVER_REMEMBER_PASSWORD;
- }
+ form_to_save_->PermanentlyBlacklist();
+ infobar_response_ = password_manager::metrics_util::NEVER_REMEMBER_PASSWORD;
return true;
}
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/password_manager/save_password_infobar_delegate_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698