Index: base/files/file_path_watcher_mac.cc |
diff --git a/base/files/file_path_watcher_mac.cc b/base/files/file_path_watcher_mac.cc |
index 54ca46d12bbdf9e9c33692555e3bc0e1040102be..b21ba1d65bba12538016fe6c5d35fa8db6131335 100644 |
--- a/base/files/file_path_watcher_mac.cc |
+++ b/base/files/file_path_watcher_mac.cc |
@@ -34,13 +34,13 @@ class FilePathWatcherImpl : public FilePathWatcher::PlatformDelegate { |
} |
virtual void Cancel() OVERRIDE { |
- if (impl_) |
+ if (impl_.get()) |
impl_->Cancel(); |
set_cancelled(); |
} |
virtual void CancelOnMessageLoopThread() OVERRIDE { |
- if (impl_) |
+ if (impl_.get()) |
impl_->Cancel(); |
set_cancelled(); |
} |