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

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

Issue 952023002: Credential Manager API: pop up the new "Manage accounts" bubble. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix the test Created 5 years, 9 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/manage_credential_item_view.h
diff --git a/chrome/browser/ui/views/passwords/manage_credential_item_view.h b/chrome/browser/ui/views/passwords/manage_credential_item_view.h
index 1b1d25ccb0ad009548a9d19b4dbae7b8f295589f..87dbe335c831debbd2089a736a99f48de15ecb01 100644
--- a/chrome/browser/ui/views/passwords/manage_credential_item_view.h
+++ b/chrome/browser/ui/views/passwords/manage_credential_item_view.h
@@ -7,13 +7,16 @@
#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
-#include "components/autofill/core/common/password_form.h"
#include "ui/views/controls/button/button.h"
#include "ui/views/controls/link_listener.h"
class CredentialsItemView;
class ManagePasswordsBubbleModel;
+namespace autofill {
+struct PasswordForm;
+}
+
namespace views {
class ImageButton;
class Link;
@@ -26,6 +29,7 @@ class ManageCredentialItemView : public views::View,
public views::ButtonListener,
public views::LinkListener {
public:
+ // The caller is responsible for |password_form| lifetime.
ManageCredentialItemView(ManagePasswordsBubbleModel* model,
const autofill::PasswordForm* password_form);
~ManageCredentialItemView() override;
@@ -39,7 +43,7 @@ class ManageCredentialItemView : public views::View,
// LinkListener:
void LinkClicked(views::Link* source, int event_flags) override;
- autofill::PasswordForm form_;
+ const autofill::PasswordForm* const form_;
scoped_ptr<CredentialsItemView> credential_button_;
views::ImageButton* delete_button_;
views::Link* undo_link_;

Powered by Google App Engine
This is Rietveld 408576698