summaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
authordhg@chromium.org <dhg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-10 17:11:29 +0000
committerdhg@chromium.org <dhg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-10 17:11:29 +0000
commit390433fb12f15cd57ec871f54ebe0a7fc1fc08fe (patch)
treecb638da46de47ad459a64eb2ba62494d6e473602 /base
parentd539831daa5dfd505b27637a753beee255279712 (diff)
downloadchromium_src-390433fb12f15cd57ec871f54ebe0a7fc1fc08fe.zip
chromium_src-390433fb12f15cd57ec871f54ebe0a7fc1fc08fe.tar.gz
chromium_src-390433fb12f15cd57ec871f54ebe0a7fc1fc08fe.tar.bz2
Changing temporary files on posix to have a . in front so they are hidden on linux systems (i.e. chromeos)
BUG=chromium-os:3110 TEST=none Review URL: http://codereview.chromium.org/2662005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49413 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r--base/file_util_posix.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/base/file_util_posix.cc b/base/file_util_posix.cc
index 441ecc8..ae9c802 100644
--- a/base/file_util_posix.cc
+++ b/base/file_util_posix.cc
@@ -74,9 +74,9 @@ static int CallStat(const char *path, stat_wrapper_t *sb) {
#if defined(GOOGLE_CHROME_BUILD)
-static const char* kTempFileName = "com.google.chrome.XXXXXX";
+static const char* kTempFileName = ".com.google.chrome.XXXXXX";
#else
-static const char* kTempFileName = "org.chromium.XXXXXX";
+static const char* kTempFileName = ".org.chromium.XXXXXX";
#endif
bool AbsolutePath(FilePath* path) {
@@ -174,7 +174,6 @@ bool Delete(const FilePath& path, bool recursive) {
directories.pop();
success = (rmdir(dir.value().c_str()) == 0);
}
-
return success;
}