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

Unified Diff: net/url_request/url_request_unittest.h

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_job.cc ('k') | net/url_request/url_request_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request_unittest.h
===================================================================
--- net/url_request/url_request_unittest.h (revision 53997)
+++ net/url_request/url_request_unittest.h (working copy)
@@ -18,6 +18,7 @@
#include "base/message_loop.h"
#include "base/path_service.h"
#include "base/process_util.h"
+#include "base/string16.h"
#include "base/thread.h"
#include "base/time.h"
#include "base/utf_string_conversions.h"
@@ -346,8 +347,8 @@
void set_allow_certificate_errors(bool val) {
allow_certificate_errors_ = val;
}
- void set_username(const std::wstring& u) { username_ = u; }
- void set_password(const std::wstring& p) { password_ = p; }
+ void set_username(const string16& u) { username_ = u; }
+ void set_password(const string16& p) { password_ = p; }
// query state
const std::string& data_received() const { return data_received_; }
@@ -376,8 +377,8 @@
bool quit_on_redirect_;
bool allow_certificate_errors_;
- std::wstring username_;
- std::wstring password_;
+ string16 username_;
+ string16 password_;
// tracks status of callbacks
int response_started_count_;
« no previous file with comments | « net/url_request/url_request_job.cc ('k') | net/url_request/url_request_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698