| Index: chrome/browser/automation/url_request_automation_job.cc
|
| diff --git a/chrome/browser/automation/url_request_automation_job.cc b/chrome/browser/automation/url_request_automation_job.cc
|
| index f10bce4ed7768b2d6f1fb0ef56ab8c87b85f7ded..a9ff3573436f47a6e00cdea940707d59a59ef2d4 100644
|
| --- a/chrome/browser/automation/url_request_automation_job.cc
|
| +++ b/chrome/browser/automation/url_request_automation_job.cc
|
| @@ -472,8 +472,9 @@ void URLRequestAutomationJob::StartAsync() {
|
| }
|
| }
|
|
|
| - // Ensure that we do not send username and password fields in the referrer.
|
| - GURL referrer(request_->GetSanitizedReferrer());
|
| + // URLRequest::SetReferrer() ensures that we do not send username and
|
| + // password fields in the referrer.
|
| + GURL referrer(request_->referrer());
|
|
|
| // The referrer header must be suppressed if the preceding URL was
|
| // a secure one and the new one is not.
|
|
|