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

Unified Diff: net/http/http_auth_handler_negotiate.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_handler_negotiate.h ('k') | net/http/http_auth_handler_negotiate_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_auth_handler_negotiate.cc
===================================================================
--- net/http/http_auth_handler_negotiate.cc (revision 53997)
+++ net/http/http_auth_handler_negotiate.cc (working copy)
@@ -44,8 +44,8 @@
}
int HttpAuthHandlerNegotiate::GenerateAuthTokenImpl(
- const std::wstring* username,
- const std::wstring* password,
+ const string16* username,
+ const string16* password,
const HttpRequestInfo* request,
CompletionCallback* callback,
std::string* auth_token) {
@@ -223,8 +223,8 @@
int HttpAuthHandlerNegotiate::DoGenerateAuthToken() {
next_state_ = STATE_GENERATE_AUTH_TOKEN_COMPLETE;
- std::wstring* username = has_username_and_password_ ? &username_ : NULL;
- std::wstring* password = has_username_and_password_ ? &password_ : NULL;
+ string16* username = has_username_and_password_ ? &username_ : NULL;
+ string16* password = has_username_and_password_ ? &password_ : NULL;
// TODO(cbentzel): This should possibly be done async.
return auth_system_.GenerateAuthToken(username, password, spn_, auth_token_);
}
« no previous file with comments | « net/http/http_auth_handler_negotiate.h ('k') | net/http/http_auth_handler_negotiate_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698