summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chrome_plugin_host.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 /chrome/browser/chrome_plugin_host.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 'chrome/browser/chrome_plugin_host.cc')
-rw-r--r--chrome/browser/chrome_plugin_host.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/browser/chrome_plugin_host.cc b/chrome/browser/chrome_plugin_host.cc
index 373bee1..4548a48 100644
--- a/chrome/browser/chrome_plugin_host.cc
+++ b/chrome/browser/chrome_plugin_host.cc
@@ -8,6 +8,7 @@
#include "base/basictypes.h"
#include "base/command_line.h"
+#include "base/file_path.h"
#include "base/file_util.h"
#include "base/gfx/png_encoder.h"
#include "base/histogram.h"
@@ -637,8 +638,8 @@ CPError STDCALL CPR_AppendFileToUpload(CPRequest* request, const char* filepath,
CHECK(handler);
if (!length) length = kuint64max;
- std::wstring wfilepath(UTF8ToWide(filepath));
- handler->request()->AppendFileRangeToUpload(wfilepath, offset, length);
+ FilePath path(FilePath::FromWStringHack(UTF8ToWide(filepath)));
+ handler->request()->AppendFileRangeToUpload(path, offset, length);
return CPERR_SUCCESS;
}