Commit 237f8367 authored by Yusuke Sato's avatar Yusuke Sato Committed by Commit Bot

Add DCHECK to address a comment in CL:1548974

BUG=921357
TEST=try

Change-Id: I05b426832e5de4d1a2d5d340b408fdc06e9b97ab
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1579560
Commit-Queue: François Doray <fdoray@chromium.org>
Reviewed-by: default avatarFrançois Doray <fdoray@chromium.org>
Cr-Commit-Position: refs/heads/master@{#653377}
parent 559443a0
......@@ -516,6 +516,8 @@ bool FilePathWatcherImpl::IncreaseWatch() {
void FilePathWatcherImpl::DecreaseWatch() {
--number_of_inotify_watches_;
// Sanity check:
DCHECK_GE(number_of_inotify_watches_, 0);
}
bool FilePathWatcherImpl::Watch(const FilePath& path,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment