summaryrefslogtreecommitdiffstats
path: root/net/base/net_util.cc
diff options
context:
space:
mode:
authorphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-07 10:17:12 +0000
committerphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-07 10:17:12 +0000
commit72cbd32707a2ede460bcc1b3cb199e653282a8ed (patch)
treed212d36fbd064fd4b8c5783a9002f235c98d7a2d /net/base/net_util.cc
parent2fe25aac3d317086338a761e3b040cbcffc3a873 (diff)
downloadchromium_src-72cbd32707a2ede460bcc1b3cb199e653282a8ed.zip
chromium_src-72cbd32707a2ede460bcc1b3cb199e653282a8ed.tar.gz
chromium_src-72cbd32707a2ede460bcc1b3cb199e653282a8ed.tar.bz2
Switching things to FilePath:
Remove following deprecated wstring-using functions: net/net_util: FilePathToFileURL net/net_util: FileURLToFilePath Switch net/base/upload_data to FilePath. Switch upload-related parts of net/url_request/url_request to FilePath. Made necessary adjustments in rest of code (a lot). Review URL: http://codereview.chromium.org/63011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13242 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/net_util.cc')
-rw-r--r--net/base/net_util.cc12
1 files changed, 0 insertions, 12 deletions
diff --git a/net/base/net_util.cc b/net/base/net_util.cc
index 7865b4e..9610e40 100644
--- a/net/base/net_util.cc
+++ b/net/base/net_util.cc
@@ -673,10 +673,6 @@ GURL FilePathToFileURL(const FilePath& path) {
return GURL(url_string);
}
-GURL FilePathToFileURL(const std::wstring& path_str) {
- return FilePathToFileURL(FilePath::FromWStringHack(path_str));
-}
-
std::wstring GetSpecificHeader(const std::wstring& headers,
const std::wstring& name) {
return GetSpecificHeaderT(headers, name);
@@ -945,14 +941,6 @@ int SetNonBlocking(int fd) {
#endif
}
-// Deprecated.
-bool FileURLToFilePath(const GURL& gurl, std::wstring* file_path) {
- FilePath path;
- bool rv = FileURLToFilePath(gurl, &path);
- *file_path = path.ToWStringHack();
- return rv;
-}
-
bool GetHostAndPort(std::string::const_iterator host_and_port_begin,
std::string::const_iterator host_and_port_end,
std::string* host,