summaryrefslogtreecommitdiffstats
path: root/webkit/port/platform/chromium/FileSystemPosix.cpp
diff options
context:
space:
mode:
authorerikkay@google.com <erikkay@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-14 18:22:47 +0000
committererikkay@google.com <erikkay@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-14 18:22:47 +0000
commitcaae541927bcc33ed0a90b224f614ed99e1ca893 (patch)
treea53a8562f5ccd139e80b8a460d45a44bb5de07ea /webkit/port/platform/chromium/FileSystemPosix.cpp
parent13402c4a0c0bfd170f3949fae948e54eca72721b (diff)
downloadchromium_src-caae541927bcc33ed0a90b224f614ed99e1ca893.zip
chromium_src-caae541927bcc33ed0a90b224f614ed99e1ca893.tar.gz
chromium_src-caae541927bcc33ed0a90b224f614ed99e1ca893.tar.bz2
removed a bunch of minor glue dependencies from port
Review URL: http://codereview.chromium.org/10919 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5485 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/port/platform/chromium/FileSystemPosix.cpp')
-rw-r--r--webkit/port/platform/chromium/FileSystemPosix.cpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/webkit/port/platform/chromium/FileSystemPosix.cpp b/webkit/port/platform/chromium/FileSystemPosix.cpp
index 0264d9e..32069a0 100644
--- a/webkit/port/platform/chromium/FileSystemPosix.cpp
+++ b/webkit/port/platform/chromium/FileSystemPosix.cpp
@@ -9,19 +9,18 @@
#include "FileSystem.h"
#include "CString.h"
-#include "base/sys_string_conversions.h"
-#include "webkit/glue/glue_util.h"
-
namespace WebCore {
// This function is tasked with transforming a String to a CString for the
// underlying operating system. On Linux the kernel doesn't care about the
// filenames so long as NUL and '/' are respected. UTF8 filenames seem to be
-// pretty common, but are not universal so we punt on the decision here and pass
-// the buck to a function in base.
-CString fileSystemRepresentation(const String &path) {
- return webkit_glue::StdStringToCString(
- base::SysWideToNativeMB(webkit_glue::StringToStdWString(path)));
+// pretty common, but are not universal, so this could potentially be different
+// on different systems. Until we figure out how to pick the right encoding,
+// we use UTF8.
+// TODO(evanm) - when we figure out how this works in base, abstract this
+// concept into ChromiumBridge.
+CString fileSystemRepresentation(const String& path) {
+ return path.utf8();
}
}