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

Unified Diff: chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc

Issue 854173003: Credential Management API: the account chooser dialog supports custom avatars. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: resize avatar manually so it looks cool! 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/manage_passwords_bubble_view.cc
diff --git a/chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc b/chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc
index 8da3ab47bd39194b7c2c3eb122ae500284dc6021..b2e9413fd708346e8bc7eb0202129a49c1f3beb9 100644
--- a/chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc
+++ b/chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/ui/views/passwords/manage_passwords_bubble_view.h"
+#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_finder.h"
#include "chrome/browser/ui/exclusive_access/fullscreen_controller.h"
@@ -208,8 +209,11 @@ ManagePasswordsBubbleView::AccountChooserView::AccountChooserView(
AddTitleRow(layout, parent_->model());
const auto& pending_credentials = parent_->model()->pending_credentials();
+ net::URLRequestContextGetter* request_context =
+ parent_->model()->GetProfile()->GetRequestContext();
for (autofill::PasswordForm* form : pending_credentials) {
- CredentialsItemView* credential_view = new CredentialsItemView(this, *form);
+ CredentialsItemView* credential_view =
+ new CredentialsItemView(this, *form, request_context);
// Add the title to the layout with appropriate padding.
layout->StartRow(0, SINGLE_VIEW_COLUMN_SET);
layout->AddView(credential_view);

Powered by Google App Engine
This is Rietveld 408576698