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

Side by Side Diff: chrome/browser/ui/passwords/manage_passwords_bubble_model.h

Issue 394403003: Close the password bubble on the icon click. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed the unnecessary command Created 6 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_MODEL_H_ 5 #ifndef CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_MODEL_H_
6 #define CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_MODEL_H_ 6 #define CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_MODEL_H_
7 7
8 #include "chrome/browser/ui/passwords/manage_passwords_bubble.h" 8 #include "chrome/browser/ui/passwords/manage_passwords_bubble.h"
9 #include "components/autofill/core/common/password_form.h" 9 #include "components/autofill/core/common/password_form.h"
10 #include "components/password_manager/core/browser/password_manager_metrics_util .h" 10 #include "components/password_manager/core/browser/password_manager_metrics_util .h"
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 81
82 // Gets the reason the bubble was dismissed. 82 // Gets the reason the bubble was dismissed.
83 password_manager::metrics_util::UIDismissalReason dismissal_reason() const { 83 password_manager::metrics_util::UIDismissalReason dismissal_reason() const {
84 return dismissal_reason_; 84 return dismissal_reason_;
85 } 85 }
86 86
87 // State setter. 87 // State setter.
88 void set_state(password_manager::ui::State state) { state_ = state; } 88 void set_state(password_manager::ui::State state) { state_ = state; }
89 #endif 89 #endif
90 90
91 using content::WebContentsObserver::web_contents;
Mike West 2014/07/22 12:08:40 Nit: This seems unnecessary?
vasilii 2014/07/22 14:18:51 I'm bringing it to the public scope. I use it in S
92
91 private: 93 private:
92 password_manager::ui::State state_; 94 password_manager::ui::State state_;
93 base::string16 title_; 95 base::string16 title_;
94 autofill::PasswordForm pending_credentials_; 96 autofill::PasswordForm pending_credentials_;
95 autofill::PasswordFormMap best_matches_; 97 autofill::PasswordFormMap best_matches_;
96 base::string16 manage_link_; 98 base::string16 manage_link_;
97 99
98 password_manager::metrics_util::UIDisplayDisposition display_disposition_; 100 password_manager::metrics_util::UIDisplayDisposition display_disposition_;
99 password_manager::metrics_util::UIDismissalReason dismissal_reason_; 101 password_manager::metrics_util::UIDismissalReason dismissal_reason_;
100 102
101 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsBubbleModel); 103 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsBubbleModel);
102 }; 104 };
103 105
104 #endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_MODEL_H_ 106 #endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_MODEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698