Home
last modified time | relevance | path

Searched refs:symlink_path (Results 1 – 6 of 6) sorted by relevance

/external/chromium_org/chrome/common/
Dlogging_chrome.cc151 base::FilePath SetUpSymlinkIfNeeded(const base::FilePath& symlink_path, in SetUpSymlinkIfNeeded() argument
153 DCHECK(!symlink_path.empty()); in SetUpSymlinkIfNeeded()
160 bool symlink_exists = base::PathExists(symlink_path); in SetUpSymlinkIfNeeded()
162 target_path = GenerateTimestampedName(symlink_path, base::Time::Now()); in SetUpSymlinkIfNeeded()
165 if (::unlink(symlink_path.value().c_str()) == -1) { in SetUpSymlinkIfNeeded()
167 DPLOG(WARNING) << "Unable to unlink " << symlink_path.value(); in SetUpSymlinkIfNeeded()
169 if (!base::CreateSymbolicLink(target_path, symlink_path)) { in SetUpSymlinkIfNeeded()
170 DPLOG(ERROR) << "Unable to create symlink " << symlink_path.value() in SetUpSymlinkIfNeeded()
174 if (!base::ReadSymbolicLink(symlink_path, &target_path)) in SetUpSymlinkIfNeeded()
175 DPLOG(ERROR) << "Unable to read symlink " << symlink_path.value(); in SetUpSymlinkIfNeeded()
/external/chromium_org/chrome/browser/apps/app_shim/
Dapp_shim_host_manager_mac.mm45 const base::FilePath& symlink_path,
50 if (!symlink_path.empty())
51 base::DeleteFile(symlink_path, false);
78 base::FilePath symlink_path;
81 symlink_path = user_data_dir.Append(app_mode::kAppShimSocketSymlinkName);
89 &DeleteSocketFiles, directory_in_tmp_, symlink_path, version_path));
127 base::FilePath symlink_path =
129 base::DeleteFile(symlink_path, false);
130 base::CreateSymbolicLink(socket_path, symlink_path);
Dapp_shim_host_manager_browsertest_mac.mm59 base::FilePath symlink_path =
63 CHECK(base::ReadSymbolicLink(symlink_path, &socket_path));
/external/chromium_org/base/files/
Dfile_util_posix.cc385 const FilePath& symlink_path) { in CreateSymbolicLink() argument
386 DCHECK(!symlink_path.empty()); in CreateSymbolicLink()
389 symlink_path.value().c_str()) != -1; in CreateSymbolicLink()
392 bool ReadSymbolicLink(const FilePath& symlink_path, FilePath* target_path) { in ReadSymbolicLink() argument
393 DCHECK(!symlink_path.empty()); in ReadSymbolicLink()
396 ssize_t count = ::readlink(symlink_path.value().c_str(), buf, arraysize(buf)); in ReadSymbolicLink()
/external/chromium_org/content/browser/fileapi/
Dlocal_file_util_unittest.cc151 base::FilePath symlink_path = LocalPath(symlink_name); in TEST_F() local
152 ASSERT_TRUE(base::CreateSymbolicLink(target_path, symlink_path)); in TEST_F()
/external/chromium_org/chrome/app_shim/
Dchrome_main_app_mode_mac.mm193 base::FilePath symlink_path =
197 if (!base::ReadSymbolicLink(symlink_path, &socket_path)) {
199 CreateChannelAndSendLaunchApp(symlink_path);