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

Unified Diff: net/url_request/url_request_http_job.cc

Issue 3040016: Net: Convert username and password to string16. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: address comments Created 10 years, 5 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
« no previous file with comments | « net/url_request/url_request_http_job.h ('k') | net/url_request/url_request_job.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request_http_job.cc
===================================================================
--- net/url_request/url_request_http_job.cc (revision 53997)
+++ net/url_request/url_request_http_job.cc (working copy)
@@ -310,8 +310,8 @@
*result = response_info_->auth_challenge;
}
-void URLRequestHttpJob::SetAuth(const std::wstring& username,
- const std::wstring& password) {
+void URLRequestHttpJob::SetAuth(const string16& username,
+ const string16& password) {
DCHECK(transaction_.get());
// Proxy gets set first, then WWW.
@@ -326,8 +326,8 @@
}
void URLRequestHttpJob::RestartTransactionWithAuth(
- const std::wstring& username,
- const std::wstring& password) {
+ const string16& username,
+ const string16& password) {
username_ = username;
password_ = password;
@@ -596,7 +596,7 @@
// notified of the headers completion so that we can update the cookie store.
if (transaction_->IsReadyToRestartForAuth()) {
DCHECK(!response_info_->auth_challenge.get());
- RestartTransactionWithAuth(std::wstring(), std::wstring());
+ RestartTransactionWithAuth(string16(), string16());
return;
}
« no previous file with comments | « net/url_request/url_request_http_job.h ('k') | net/url_request/url_request_job.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698