| Index: base/files/file_path_watcher_win.cc
|
| diff --git a/base/files/file_path_watcher_win.cc b/base/files/file_path_watcher_win.cc
|
| index 98169ab56b79b1f27fd50f8cf06e243d5d64fae8..73f9cfb332afe2ad0dfe254b0655d97b25beb7d1 100644
|
| --- a/base/files/file_path_watcher_win.cc
|
| +++ b/base/files/file_path_watcher_win.cc
|
| @@ -11,7 +11,7 @@
|
| #include "base/logging.h"
|
| #include "base/memory/ref_counted.h"
|
| #include "base/message_loop/message_loop_proxy.h"
|
| -#include "base/profiler/scoped_profile.h"
|
| +#include "base/profiler/scoped_tracker.h"
|
| #include "base/time/time.h"
|
| #include "base/win/object_watcher.h"
|
|
|
| @@ -39,7 +39,7 @@ class FilePathWatcherImpl : public FilePathWatcher::PlatformDelegate,
|
| virtual void WillDestroyCurrentMessageLoop() override;
|
|
|
| // Callback from MessageLoopForIO.
|
| - virtual void OnObjectSignaled(HANDLE object);
|
| + virtual void OnObjectSignaled(HANDLE object) override;
|
|
|
| private:
|
| virtual ~FilePathWatcherImpl() {}
|
| @@ -147,10 +147,9 @@ void FilePathWatcherImpl::WillDestroyCurrentMessageLoop() {
|
| }
|
|
|
| void FilePathWatcherImpl::OnObjectSignaled(HANDLE object) {
|
| - // TODO(vadimt): Remove ScopedProfile below once crbug.com/418183 is fixed.
|
| - tracked_objects::ScopedProfile tracking_profile(
|
| - FROM_HERE_WITH_EXPLICIT_FUNCTION(
|
| - "FilePathWatcherImpl_OnObjectSignaled"));
|
| + // TODO(vadimt): Remove ScopedTracker below once crbug.com/418183 is fixed.
|
| + tracked_objects::ScopedTracker tracking_profile(
|
| + FROM_HERE_WITH_EXPLICIT_FUNCTION("FilePathWatcherImpl_OnObjectSignaled"));
|
|
|
| DCHECK(object == handle_);
|
| // Make sure we stay alive through the body of this function.
|
|
|