Index: components/storage_monitor/mtab_watcher_linux.cc |
diff --git a/components/storage_monitor/mtab_watcher_linux.cc b/components/storage_monitor/mtab_watcher_linux.cc |
index 00a9d0cc4842ba276c1d669819e1cb94258983cb..31dda98606c3374e47c5562376adcdad1fb2f07d 100644 |
--- a/components/storage_monitor/mtab_watcher_linux.cc |
+++ b/components/storage_monitor/mtab_watcher_linux.cc |
@@ -38,7 +38,7 @@ MtabWatcherLinux::MtabWatcherLinux(const base::FilePath& mtab_path, |
: mtab_path_(mtab_path), |
delegate_(delegate), |
weak_ptr_factory_(this) { |
- DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::FILE)); |
+ DCHECK_CURRENTLY_ON(content::BrowserThread::FILE); |
bool ret = file_watcher_.Watch( |
mtab_path_, false, |
base::Bind(&MtabWatcherLinux::OnFilePathChanged, |
@@ -52,11 +52,11 @@ MtabWatcherLinux::MtabWatcherLinux(const base::FilePath& mtab_path, |
} |
MtabWatcherLinux::~MtabWatcherLinux() { |
- DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::FILE)); |
+ DCHECK_CURRENTLY_ON(content::BrowserThread::FILE); |
} |
void MtabWatcherLinux::ReadMtab() const { |
- DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::FILE)); |
+ DCHECK_CURRENTLY_ON(content::BrowserThread::FILE); |
FILE* fp = setmntent(mtab_path_.value().c_str(), "r"); |
if (!fp) |
@@ -87,7 +87,7 @@ void MtabWatcherLinux::ReadMtab() const { |
void MtabWatcherLinux::OnFilePathChanged( |
const base::FilePath& path, bool error) { |
- DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::FILE)); |
+ DCHECK_CURRENTLY_ON(content::BrowserThread::FILE); |
if (path != mtab_path_) { |
// This cannot happen unless FilePathWatcher is buggy. Just ignore this |