| Index: chrome/browser/ui/views/login_prompt_views.cc
|
| diff --git a/chrome/browser/ui/views/login_prompt_views.cc b/chrome/browser/ui/views/login_prompt_views.cc
|
| index cde26d5d2f2b9097da0aa4dbc3c3442738b8c24d..6949fb09ab04d71bde99cbfc2a182d9d166b7b20 100644
|
| --- a/chrome/browser/ui/views/login_prompt_views.cc
|
| +++ b/chrome/browser/ui/views/login_prompt_views.cc
|
| @@ -34,8 +34,9 @@ class LoginHandlerViews : public LoginHandler, public views::DialogDelegate {
|
| }
|
|
|
| // LoginModelObserver:
|
| - void OnAutofillDataAvailable(const base::string16& username,
|
| - const base::string16& password) override {
|
| + void OnAutofillDataAvailableInternal(
|
| + const base::string16& username,
|
| + const base::string16& password) override {
|
| // Nothing to do here since LoginView takes care of autofill for win.
|
| }
|
| void OnLoginModelDestroying() override {}
|
| @@ -67,7 +68,7 @@ class LoginHandlerViews : public LoginHandler, public views::DialogDelegate {
|
|
|
| // The widget is going to delete itself; clear our pointer.
|
| dialog_ = NULL;
|
| - SetModel(NULL);
|
| + SetModel(nullptr, nullptr);
|
|
|
| ReleaseSoon();
|
| }
|
| @@ -97,16 +98,19 @@ class LoginHandlerViews : public LoginHandler, public views::DialogDelegate {
|
| }
|
|
|
| // LoginHandler:
|
| - void BuildViewForPasswordManager(password_manager::PasswordManager* manager,
|
| - const base::string16& explanation) override {
|
| + void BuildViewForPasswordManager(
|
| + password_manager::PasswordManager* manager,
|
| + const base::string16& explanation,
|
| + const autofill::PasswordForm* observed_form) override {
|
| DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
|
| + DCHECK_EQ(manager == nullptr, observed_form == nullptr);
|
|
|
| // Create a new LoginView and set the model for it. The model (password
|
| // manager) is owned by the WebContents, but the view is parented to the
|
| // browser window, so the view may be destroyed after the password
|
| // manager. The view listens for model destruction and unobserves
|
| // accordingly.
|
| - login_view_ = new LoginView(explanation, manager);
|
| + login_view_ = new LoginView(explanation, manager, observed_form);
|
|
|
| // Scary thread safety note: This can potentially be called *after* SetAuth
|
| // or CancelAuth (say, if the request was cancelled before the UI thread got
|
|
|