| Index: chrome/browser/chrome_plugin_host.cc
|
| diff --git a/chrome/browser/chrome_plugin_host.cc b/chrome/browser/chrome_plugin_host.cc
|
| index 373bee151b4704eeb882bc7263b08efbc03f55da..4548a48eb43f9fc07d93da7a88562b5c2e5f1429 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;
|
| }
|
|
|
|
|