Commit 2f720b41 authored by Greg Thompson's avatar Greg Thompson Committed by Chromium LUCI CQ

Switch to the new FilePathWatcher::Watch(Type) method in /components/storage_monitor.

FilePathWatcher::Watch(bool) is going away. No functional changes.

BUG=1147071
This CL was uploaded by git cl split.

R=tommycli@chromium.org

Change-Id: I763198654ce1410bbff030223d28f982e6f3a132
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2550791
Commit-Queue: Tommy Li <tommycli@chromium.org>
Reviewed-by: default avatarTommy Li <tommycli@chromium.org>
Auto-Submit: Greg Thompson <grt@chromium.org>
Cr-Commit-Position: refs/heads/master@{#831902}
parent 40aa886f
......@@ -41,7 +41,7 @@ MtabWatcherLinux::MtabWatcherLinux(const base::FilePath& mtab_path,
: mtab_path_(mtab_path), callback_(callback) {
DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
bool ret = file_watcher_.Watch(
mtab_path_, false,
mtab_path_, base::FilePathWatcher::Type::kNonRecursive,
base::BindRepeating(&MtabWatcherLinux::OnFilePathChanged,
weak_ptr_factory_.GetWeakPtr()));
if (!ret) {
......
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