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

Unified Diff: chrome/browser/ui/views/passwords/credentials_item_view.h

Issue 733463003: Show user credentials chooser bubble. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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/credentials_item_view.h
diff --git a/chrome/browser/ui/views/passwords/credentials_item_view.h b/chrome/browser/ui/views/passwords/credentials_item_view.h
index c9c039f3b8e76fb85693c13cdf585657c0dc4f3d..a2aecaea5c2f06acec93a9227b77efabcdce63c3 100644
--- a/chrome/browser/ui/views/passwords/credentials_item_view.h
+++ b/chrome/browser/ui/views/passwords/credentials_item_view.h
@@ -6,6 +6,7 @@
#define CHROME_BROWSER_UI_VIEWS_PASSWORDS_CREDENTIALS_ITEM_VIEW_H_
#include "base/macros.h"
+#include "components/autofill/core/common/password_form.h"
#include "ui/views/controls/button/label_button.h"
// CredentialsItemView represents a credential view in the account chooser
@@ -13,10 +14,14 @@
class CredentialsItemView : public views::LabelButton {
public:
CredentialsItemView(views::ButtonListener* button_listener,
- const base::string16& text);
+ const autofill::PasswordForm& form);
~CredentialsItemView() override;
+ const autofill::PasswordForm& form() const { return form_; }
+
private:
+ autofill::PasswordForm form_;
+
DISALLOW_COPY_AND_ASSIGN(CredentialsItemView);
};

Powered by Google App Engine
This is Rietveld 408576698