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

Unified Diff: chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc

Issue 1304573004: Added UMA statistics for change passwords in the Password Manager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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/views/passwords/manage_passwords_bubble_view.cc
diff --git a/chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc b/chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc
index 0095032732fd4758a246bf85caef5ae57cbc68a9..2f3038114cd91c758acb7331a7883e7bf9e82e96 100644
--- a/chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc
+++ b/chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc
@@ -1027,9 +1027,6 @@ ManagePasswordsBubbleView::UpdatePendingView::UpdatePendingView(
parent->model()->pending_password().username_value);
item = selection_view_;
} else {
- DCHECK_EQ(1u, parent->model()->local_credentials().size());
dvadym 2015/08/19 11:47:56 Since https://codereview.chromium.org/1297963002/
vasilii 2015/08/20 15:11:48 You are talking about password_overriden case? It
dvadym 2015/08/21 14:09:53 In case of password_overridden, password store can
- DCHECK_EQ(parent->model()->local_credentials()[0]->username_value,
- parent->model()->pending_password().username_value);
vasilii 2015/08/19 13:01:18 If this is untrue then there is a bug in the line
dvadym 2015/08/20 11:10:11 Thanks, there was a bug in the line 1091. Fixed.
vasilii 2015/08/20 15:11:48 I'm concerned about this change. It violates the c
dvadym 2015/08/21 14:09:53 Strictly speaking using |pending_password| for arg
std::vector<const autofill::PasswordForm*> forms;
forms.push_back(&parent->model()->pending_password());
item = new ManagePasswordItemsView(parent_->model(), forms);
@@ -1094,6 +1091,8 @@ void ManagePasswordsBubbleView::UpdatePendingView::ButtonPressed(
parent_->model()->OnUpdateClicked(
*parent_->model()->local_credentials()[0]);
}
+ } else {
+ parent_->model()->OnNopeUpdateClicked();
}
parent_->Close();
}

Powered by Google App Engine
This is Rietveld 408576698