| Index: chrome/browser/password_manager/password_form_manager.cc
|
| diff --git a/chrome/browser/password_manager/password_form_manager.cc b/chrome/browser/password_manager/password_form_manager.cc
|
| index c0a6724091cdd2dd2916d6a031cb622af07403fd..1cbbdec6377cad3725dc132b8fcdd9847eb17c61 100644
|
| --- a/chrome/browser/password_manager/password_form_manager.cc
|
| +++ b/chrome/browser/password_manager/password_form_manager.cc
|
| @@ -293,10 +293,13 @@ void PasswordFormManager::OnRequestDone(int handle,
|
| return;
|
| }
|
|
|
| - // Proceed to autofill (note that we provide the choices but don't
|
| - // actually prefill a value if the ACTION paths don't match).
|
| - bool wait_for_username = observed_form_.action.GetWithEmptyPath() !=
|
| - preferred_match_->action.GetWithEmptyPath();
|
| + // Proceed to autofill.
|
| + // Note that we provide the choices but don't actually prefill a value if
|
| + // either: (1) we are in Incognito mode, or (2) the ACTION paths don't match.
|
| + bool wait_for_username =
|
| + profile_->IsOffTheRecord() ||
|
| + observed_form_.action.GetWithEmptyPath() !=
|
| + preferred_match_->action.GetWithEmptyPath();
|
| if (wait_for_username)
|
| manager_action_ = kManagerActionNone;
|
| else
|
|
|