Chromium Code Reviews| Index: chrome/browser/ui/passwords/manage_passwords_bubble_model.h |
| diff --git a/chrome/browser/ui/passwords/manage_passwords_bubble_model.h b/chrome/browser/ui/passwords/manage_passwords_bubble_model.h |
| index 202cae9ac8d50580859e83434a660fcb665b8e36..a438e24c2ef4e4570c6f9324197e41f59d4ab910 100644 |
| --- a/chrome/browser/ui/passwords/manage_passwords_bubble_model.h |
| +++ b/chrome/browser/ui/passwords/manage_passwords_bubble_model.h |
| @@ -48,6 +48,10 @@ class ManagePasswordsBubbleModel : public content::WebContentsObserver { |
| // Called by the view code when the "Cancel" button in clicked by the user. |
| void OnCancelClicked(); |
| + // Called by the view code when the "Nope" button in clicked by the user in |
| + // update bubble. |
| + void OnNopeUpdateClicked(); |
| + |
| // Called by the view code when the "Never for this site." button in clicked |
| // by the user. |
| void OnNeverForThisSiteClicked(); |
| @@ -151,6 +155,13 @@ class ManagePasswordsBubbleModel : public content::WebContentsObserver { |
| // Updates |title_| and |title_brand_link_range_| for the |
| // PENDING_PASSWORD_STATE. |
| void UpdatePendingStateTitle(); |
| + enum UserBehaviorOnUpdateBubble { |
|
vasilii
2015/08/21 15:58:34
The enum should go before the method.
dvadym
2015/08/21 16:25:28
Done.
|
| + UPDATE_CLICKED, |
| + NOPE_CLICKED, |
| + NO_INTERACTION |
| + }; |
| + password_manager::metrics_util::UpdatePasswordSubmissionEvent |
| + GetUpdateDismissalReason(UserBehaviorOnUpdateBubble behavior); |
|
vasilii
2015/08/21 15:58:34
Should be a const method.
dvadym
2015/08/21 16:25:28
Done.
|
| // URL of the page from where this bubble was triggered. |
| GURL origin_; |
| password_manager::ui::State state_; |
| @@ -167,6 +178,8 @@ class ManagePasswordsBubbleModel : public content::WebContentsObserver { |
| gfx::Range save_confirmation_link_range_; |
| password_manager::metrics_util::UIDisplayDisposition display_disposition_; |
| password_manager::metrics_util::UIDismissalReason dismissal_reason_; |
| + password_manager::metrics_util::UpdatePasswordSubmissionEvent |
| + update_password_submission_event_; |
| DISALLOW_COPY_AND_ASSIGN(ManagePasswordsBubbleModel); |
| }; |