Index: base/files/file_path_watcher_stub.cc |
diff --git a/base/files/file_path_watcher_stub.cc b/base/files/file_path_watcher_stub.cc |
index c224e379f3754e86f938c6b4ef0815b1d798161d..ae22c1ff06a6b2eb9cbaa5c8fd7db6988d8093b4 100644 |
--- a/base/files/file_path_watcher_stub.cc |
+++ b/base/files/file_path_watcher_stub.cc |
@@ -7,12 +7,18 @@ |
#include "base/files/file_path_watcher.h" |
+#include "base/macros.h" |
+#include "base/memory/ptr_util.h" |
+ |
namespace base { |
namespace { |
class FilePathWatcherImpl : public FilePathWatcher::PlatformDelegate { |
public: |
+ FilePathWatcherImpl() = default; |
+ ~FilePathWatcherImpl() override = default; |
+ |
bool Watch(const FilePath& path, |
bool recursive, |
const FilePathWatcher::Callback& callback) override { |
@@ -21,15 +27,15 @@ class FilePathWatcherImpl : public FilePathWatcher::PlatformDelegate { |
void Cancel() override {} |
- protected: |
- ~FilePathWatcherImpl() override {} |
+ private: |
+ DISALLOW_COPY_AND_ASSIGN(FilePathWatcherImpl); |
}; |
} // namespace |
FilePathWatcher::FilePathWatcher() { |
sequence_checker_.DetachFromSequence(); |
- impl_ = new FilePathWatcherImpl(); |
+ impl_ = MakeUnique<FilePathWatcherImpl>(); |
} |
} // namespace base |