diff options
Diffstat (limited to 'webkit/support')
-rw-r--r-- | webkit/support/webkit_support.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/webkit/support/webkit_support.cc b/webkit/support/webkit_support.cc index 2d994af..83fae0c 100644 --- a/webkit/support/webkit_support.cc +++ b/webkit/support/webkit_support.cc @@ -312,7 +312,9 @@ WebKit::WebApplicationCacheHost* CreateApplicationCacheHost( WebKit::WebString GetWebKitRootDir() { FilePath path = GetWebKitRootDirFilePath(); - return WebKit::WebString::fromUTF8(WideToUTF8(path.ToWStringHack()).c_str()); + std::string path_ascii = path.MaybeAsASCII(); + CHECK(!path_ascii.empty()); + return WebKit::WebString::fromUTF8(path_ascii.c_str()); } void SetUpGLBindings(GLBindingPreferences bindingPref) { |