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

Unified Diff: ios/chrome/browser/passwords/ios_chrome_save_password_infobar_delegate.mm

Issue 1777473004: Use password_manager::metrics_util::ResponseType on iOS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compile Created 4 years, 9 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
« no previous file with comments | « ios/chrome/browser/passwords/ios_chrome_save_password_infobar_delegate.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/passwords/ios_chrome_save_password_infobar_delegate.mm
diff --git a/ios/chrome/browser/passwords/ios_chrome_save_password_infobar_delegate.mm b/ios/chrome/browser/passwords/ios_chrome_save_password_infobar_delegate.mm
index 67242515756b061f216787ee69b50e38f226c1b2..67da5c4e5e8399278dda1e61f9ccd100523b22c2 100644
--- a/ios/chrome/browser/passwords/ios_chrome_save_password_infobar_delegate.mm
+++ b/ios/chrome/browser/passwords/ios_chrome_save_password_infobar_delegate.mm
@@ -40,14 +40,15 @@ void IOSChromeSavePasswordInfoBarDelegate::Create(
IOSChromeSavePasswordInfoBarDelegate::~IOSChromeSavePasswordInfoBarDelegate() {
UMA_HISTOGRAM_ENUMERATION("PasswordManager.InfoBarResponse",
- infobar_response_, NUM_RESPONSE_TYPES);
+ infobar_response_,
+ password_manager::metrics_util::NUM_RESPONSE_TYPES);
}
IOSChromeSavePasswordInfoBarDelegate::IOSChromeSavePasswordInfoBarDelegate(
bool is_smart_lock_branding_enabled,
scoped_ptr<PasswordFormManager> form_to_save)
: form_to_save_(std::move(form_to_save)),
- infobar_response_(NO_RESPONSE),
+ infobar_response_(password_manager::metrics_util::NO_RESPONSE),
is_smart_lock_branding_enabled_(is_smart_lock_branding_enabled) {}
infobars::InfoBarDelegate::Type
@@ -85,14 +86,14 @@ base::string16 IOSChromeSavePasswordInfoBarDelegate::GetButtonLabel(
bool IOSChromeSavePasswordInfoBarDelegate::Accept() {
DCHECK(form_to_save_);
form_to_save_->Save();
- infobar_response_ = REMEMBER_PASSWORD;
+ infobar_response_ = password_manager::metrics_util::REMEMBER_PASSWORD;
return true;
}
bool IOSChromeSavePasswordInfoBarDelegate::Cancel() {
DCHECK(form_to_save_);
form_to_save_->PermanentlyBlacklist();
- infobar_response_ = DO_NOT_REMEMBER_PASSWORD;
+ infobar_response_ = password_manager::metrics_util::NEVER_REMEMBER_PASSWORD;
return true;
}
« no previous file with comments | « ios/chrome/browser/passwords/ios_chrome_save_password_infobar_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698