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

Unified Diff: base/files/file_path_watcher_mac.cc

Issue 8368009: Replace most LOG statements with DLOG statements in base. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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 | « base/file_util_win.cc ('k') | base/files/file_path_watcher_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/files/file_path_watcher_mac.cc
===================================================================
--- base/files/file_path_watcher_mac.cc (revision 106858)
+++ base/files/file_path_watcher_mac.cc (working copy)
@@ -195,7 +195,7 @@
}
if (HANDLE_EINTR(close(*fd)) != 0) {
- PLOG(ERROR) << "close";
+ DPLOG(ERROR) << "close";
}
*fd = -1;
}
@@ -203,7 +203,7 @@
bool FilePathWatcherImpl::AreKeventValuesValid(struct kevent* kevents,
int count) {
if (count < 0) {
- PLOG(ERROR) << "kevent";
+ DPLOG(ERROR) << "kevent";
return false;
}
bool valid = true;
@@ -227,7 +227,7 @@
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;
}
}
@@ -338,8 +338,8 @@
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
@@ -432,12 +432,12 @@
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);
« no previous file with comments | « base/file_util_win.cc ('k') | base/files/file_path_watcher_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698