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

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

Issue 848723002: Credential Manager API: Showing both local and federated logins. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Not ready for review Created 5 years, 11 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/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 4ff70a1135ee3a734f143de657e1b9977fe04bc9..23939241b9a3eb791c475cb4d11c8955531a0bed 100644
--- a/chrome/browser/ui/views/passwords/credentials_item_view.h
+++ b/chrome/browser/ui/views/passwords/credentials_item_view.h
@@ -7,6 +7,7 @@
#include "base/macros.h"
#include "components/autofill/core/common/password_form.h"
+#include "components/password_manager/content/common/credential_manager_types.h"
#include "ui/views/controls/button/label_button.h"
namespace views {
@@ -19,10 +20,14 @@ class Label;
class CredentialsItemView : public views::LabelButton {
public:
CredentialsItemView(views::ButtonListener* button_listener,
- const autofill::PasswordForm& form);
+ const autofill::PasswordForm& form,
+ password_manager::CredentialType credential_type);
~CredentialsItemView() override;
const autofill::PasswordForm& form() const { return form_; }
+ password_manager::CredentialType credential_type() const {
+ return credential_type_;
+ }
private:
// views::LabelButton:
@@ -31,6 +36,7 @@ class CredentialsItemView : public views::LabelButton {
void Layout() override;
autofill::PasswordForm form_;
+ password_manager::CredentialType credential_type_;
views::ImageView* image_view_;
views::Label* full_name_label_;

Powered by Google App Engine
This is Rietveld 408576698