Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(164)

Unified Diff: webkit/fileapi/file_system_util.cc

Issue 10051002: Merge 129631 - Add database recovery for FileSystemOriginDatabase (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1084/src/
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/fileapi/file_system_util.h ('k') | webkit/fileapi/obfuscated_file_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/fileapi/file_system_util.cc
===================================================================
--- webkit/fileapi/file_system_util.cc (revision 131715)
+++ webkit/fileapi/file_system_util.cc (working copy)
@@ -224,4 +224,20 @@
}
}
+std::string FilePathToString(const FilePath& file_path) {
+#if defined(OS_WIN)
+ return UTF16ToUTF8(file_path.value());
+#elif defined(OS_POSIX)
+ return file_path.value();
+#endif
+}
+
+FilePath StringToFilePath(const std::string& file_path_string) {
+#if defined(OS_WIN)
+ return FilePath(UTF8ToUTF16(file_path_string));
+#elif defined(OS_POSIX)
+ return FilePath(file_path_string);
+#endif
+}
+
} // namespace fileapi
« no previous file with comments | « webkit/fileapi/file_system_util.h ('k') | webkit/fileapi/obfuscated_file_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698