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

Unified Diff: net/websockets/websocket_job.cc

Issue 8340026: Use AuthCredentials throughout the network stack instead of username/password. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Reduce password zapping Created 9 years, 2 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
Index: net/websockets/websocket_job.cc
diff --git a/net/websockets/websocket_job.cc b/net/websockets/websocket_job.cc
index 18db83c8bad89bccde7dc38bc8e41889f3a03c72..4c64496d33e27e073bdcc8fc32bb0e1f37697afc 100644
--- a/net/websockets/websocket_job.cc
+++ b/net/websockets/websocket_job.cc
@@ -155,11 +155,9 @@ void WebSocketJob::Close() {
CloseInternal();
}
-void WebSocketJob::RestartWithAuth(
- const string16& username,
- const string16& password) {
+void WebSocketJob::RestartWithAuth(const AuthCredentials& credentials) {
state_ = CONNECTING;
- socket_->RestartWithAuth(username, password);
+ socket_->RestartWithAuth(credentials);
}
void WebSocketJob::DetachDelegate() {

Powered by Google App Engine
This is Rietveld 408576698