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

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: 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 29bc713b6aedb68bbfb5fcbbbc3a5598a1286cf8..01055701d17ce7c3eff925746ad5877aee9f914c 100644
--- a/chrome/browser/ui/views/passwords/credentials_item_view.h
+++ b/chrome/browser/ui/views/passwords/credentials_item_view.h
@@ -8,6 +8,7 @@
#include "base/macros.h"
#include "base/memory/weak_ptr.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 gfx {
@@ -29,10 +30,14 @@ class CredentialsItemView : public views::LabelButton {
public:
CredentialsItemView(views::ButtonListener* button_listener,
const autofill::PasswordForm& form,
+ password_manager::CredentialType credential_type,
net::URLRequestContextGetter* request_context);
~CredentialsItemView() override;
const autofill::PasswordForm& form() const { return form_; }
+ password_manager::CredentialType credential_type() const {
+ return credential_type_;
+ }
private:
class AvatarFetcher;
@@ -45,6 +50,7 @@ class CredentialsItemView : public views::LabelButton {
void UpdateAvatar(const gfx::ImageSkia& image);
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