summaryrefslogtreecommitdiffstats
path: root/base/files/file_path_watcher_kqueue.cc
diff options
context:
space:
mode:
authorjoaodasilva@chromium.org <joaodasilva@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-04 10:25:30 +0000
committerjoaodasilva@chromium.org <joaodasilva@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-04 10:25:30 +0000
commit20f0609c4ed4c6eacd2d3781a13043e6d19a7293 (patch)
tree4b3d2d9fda1b8a6858370be159a093521b9793f5 /base/files/file_path_watcher_kqueue.cc
parent99065988485782d0a46cb2e8e81e8aed8787066b (diff)
downloadchromium_src-20f0609c4ed4c6eacd2d3781a13043e6d19a7293.zip
chromium_src-20f0609c4ed4c6eacd2d3781a13043e6d19a7293.tar.gz
chromium_src-20f0609c4ed4c6eacd2d3781a13043e6d19a7293.tar.bz2
Removed file_path_watcher_mac.cc, which isn't used anymore.
Review URL: https://chromiumcodereview.appspot.com/10500012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@140272 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/files/file_path_watcher_kqueue.cc')
-rw-r--r--base/files/file_path_watcher_kqueue.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/base/files/file_path_watcher_kqueue.cc b/base/files/file_path_watcher_kqueue.cc
index 29c104a..6221a62 100644
--- a/base/files/file_path_watcher_kqueue.cc
+++ b/base/files/file_path_watcher_kqueue.cc
@@ -205,7 +205,7 @@ void FilePathWatcherImpl::CloseFileDescriptor(int *fd) {
}
if (HANDLE_EINTR(close(*fd)) != 0) {
- PLOG(ERROR) << "close";
+ DPLOG(ERROR) << "close";
}
*fd = -1;
}
@@ -213,7 +213,7 @@ void FilePathWatcherImpl::CloseFileDescriptor(int *fd) {
bool FilePathWatcherImpl::AreKeventValuesValid(struct kevent* kevents,
int count) {
if (count < 0) {
- PLOG(ERROR) << "kevent";
+ DPLOG(ERROR) << "kevent";
return false;
}
bool valid = true;
@@ -237,7 +237,7 @@ bool FilePathWatcherImpl::AreKeventValuesValid(struct kevent* kevents,
path_name = base::StringPrintf(
"fd %d", *reinterpret_cast<int*>(&kevents[i].ident));
}
- LOG(ERROR) << "Error: " << kevents[i].data << " for " << path_name;
+ DLOG(ERROR) << "Error: " << kevents[i].data << " for " << path_name;
valid = false;
}
}
@@ -348,8 +348,8 @@ bool FilePathWatcherImpl::UpdateWatches(bool* target_file_affected) {
void FilePathWatcherImpl::OnFileCanReadWithoutBlocking(int fd) {
DCHECK(MessageLoopForIO::current());
- CHECK_EQ(fd, kqueue_);
- CHECK(events_.size());
+ DCHECK_EQ(fd, kqueue_);
+ DCHECK(events_.size());
// Request the file system update notifications that have occurred and return
// them in |updates|. |count| will contain the number of updates that have
@@ -442,12 +442,12 @@ bool FilePathWatcherImpl::Watch(const FilePath& path,
kqueue_ = kqueue();
if (kqueue_ == -1) {
- PLOG(ERROR) << "kqueue";
+ DPLOG(ERROR) << "kqueue";
return false;
}
int last_entry = EventsForPath(target_, &events_);
- CHECK_NE(last_entry, 0);
+ DCHECK_NE(last_entry, 0);
EventVector responses(last_entry);