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

Unified Diff: base/file_util_linux.cc

Issue 12489: Remove file_util::kPathSeparator from posix. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 1 month 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 | « base/file_util.cc ('k') | base/file_util_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/file_util_linux.cc
===================================================================
--- base/file_util_linux.cc (revision 6039)
+++ base/file_util_linux.cc (working copy)
@@ -15,8 +15,6 @@
namespace file_util {
-const wchar_t kPathSeparator = L'/';
-
bool GetTempDir(FilePath* path) {
const char* tmp = getenv("TMPDIR");
if (tmp)
@@ -30,7 +28,7 @@
int infile = open(from_path.value().c_str(), O_RDONLY);
if (infile < 0)
return false;
-
+
int outfile = creat(to_path.value().c_str(), 0666);
if (outfile < 0) {
close(infile);
« no previous file with comments | « base/file_util.cc ('k') | base/file_util_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698