| Index: webkit/support/webkit_support.cc
|
| diff --git a/webkit/support/webkit_support.cc b/webkit/support/webkit_support.cc
|
| index 2e893f986e4348ec75e600a8883829afdeb45759..c4e40d808a17de6586a1d4b08f63703e73d202ec 100644
|
| --- a/webkit/support/webkit_support.cc
|
| +++ b/webkit/support/webkit_support.cc
|
| @@ -289,8 +289,9 @@ WebKit::WebApplicationCacheHost* CreateApplicationCacheHost(
|
| }
|
|
|
| WebKit::WebString GetWebKitRootDir() {
|
| - FilePath path = GetWebKitRootDirFilePath();
|
| - return WebKit::WebString::fromUTF8(WideToUTF8(path.ToWStringHack()).c_str());
|
| + // In theory you cannot safely convert a path to a string, but this code
|
| + // is only used by tests.
|
| + return GetWebKitRootDirFilePath().LossyDisplayName();
|
| }
|
|
|
| void SetUpGLBindings(GLBindingPreferences bindingPref) {
|
|
|