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

Unified Diff: chrome/browser/ui/passwords/manage_passwords_bubble_model.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/passwords/manage_passwords_bubble_model.cc
diff --git a/chrome/browser/ui/passwords/manage_passwords_bubble_model.cc b/chrome/browser/ui/passwords/manage_passwords_bubble_model.cc
index d2473760db142a42fda759a7831dbccb29fa7a4a..f83dbb4bb8c5dce328ae3f556f66cf664272f626 100644
--- a/chrome/browser/ui/passwords/manage_passwords_bubble_model.cc
+++ b/chrome/browser/ui/passwords/manage_passwords_bubble_model.cc
@@ -326,6 +326,10 @@ void ManagePasswordsBubbleModel::OnChooseCredentials(
state_ = password_manager::ui::INACTIVE_STATE;
}
+Profile* ManagePasswordsBubbleModel::GetProfile() const {
+ return GetProfileFromWebContents(web_contents());
+}
+
// static
int ManagePasswordsBubbleModel::UsernameFieldWidth() {
return GetFieldWidth(USERNAME_FIELD);

Powered by Google App Engine
This is Rietveld 408576698