DescriptionRemove ref-counting from FilePathWatcher.
Keep the PlatformDelegate in a std::unique_ptr instead of a scoped_refptr
in FilePathWatcher. Use weak ptrs when posting callbacks bound to a
PlatformDelegate.
With this change, it is guaranteed that a PlatformDelegate does not
outlive its parent FilePathWatcher. This will allow multiple code
simplifications in FilePathWatcher.
BUG=675631
Review-Url: https://codereview.chromium.org/2596273003
Cr-Commit-Position: refs/heads/master@{#442404}
Committed: https://chromium.googlesource.com/chromium/src/+/0ac2f0f892f6c9998134902dbc0fc3d78d8517a9
Patch Set 1 #Patch Set 2 : self-review #Patch Set 3 : self-review #
Total comments: 8
Patch Set 4 : rebase #Patch Set 5 : CR gab #10 #Patch Set 6 : self-review #
Total comments: 8
Patch Set 7 : CR gab #21 #
Total comments: 2
Patch Set 8 : fix build errors and add DISALLOW_COPY_AND_ASSIGN #Patch Set 9 : fix mac build error #
Messages
Total messages: 41 (29 generated)
|