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

Unified Diff: net/http/http_auth_controller.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/http/http_auth_controller.h ('k') | net/http/http_auth_gssapi_posix.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_auth_controller.cc
===================================================================
--- net/http/http_auth_controller.cc (revision 53997)
+++ net/http/http_auth_controller.cc (working copy)
@@ -73,8 +73,8 @@
bool needs_auth = HaveAuth() || SelectPreemptiveAuth(net_log);
if (!needs_auth)
return OK;
- const std::wstring* username = NULL;
- const std::wstring* password = NULL;
+ const string16* username = NULL;
+ const string16* password = NULL;
if (identity_.source != HttpAuth::IDENT_SRC_DEFAULT_CREDENTIALS) {
username = &identity_.username;
password = &identity_.password;
@@ -219,8 +219,8 @@
return OK;
}
-void HttpAuthController::ResetAuth(const std::wstring& username,
- const std::wstring& password) {
+void HttpAuthController::ResetAuth(const string16& username,
+ const string16& password) {
DCHECK(identity_.invalid || (username.empty() && password.empty()));
if (identity_.invalid) {
« no previous file with comments | « net/http/http_auth_controller.h ('k') | net/http/http_auth_gssapi_posix.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698