Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(263)

Issue 2384343002: DevTools: improve DevTools file watcher to send added and removed paths (Closed)

Created:
4 years, 2 months ago by lushnikov
Modified:
4 years, 2 months ago
Reviewers:
dgozman, pfeldman
CC:
chromium-reviews, caseq+blink_chromium.org, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, apavlov+blink_chromium.org, devtools-reviews_chromium.org, blink-reviews, pfeldman, kozyatinskiy+blink_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

DevTools: improve DevTools file watcher to send added and removed paths Currently, DevTools file watcher reports both added and changed paths as "changed" and doesn't report removed paths. This patch improves DevTools file watcher so that it starts reporting changed, added and removed paths. BUG=none R=dgozman, pfeldman Committed: https://crrev.com/2eaab0b3ed3ccdb072e3f60a0ebcf0298841d01d Cr-Commit-Position: refs/heads/master@{#422838}

Patch Set 1 #

Total comments: 11

Patch Set 2 : good stuff #

Patch Set 3 : revert test changes #

Patch Set 4 : go above and beyond #

Total comments: 10

Patch Set 5 : drastically improving my C++ #

Total comments: 8

Patch Set 6 : honing skills. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+69 lines, -25 lines) Patch
M chrome/browser/devtools/devtools_file_helper.h View 2 chunks +7 lines, -2 lines 0 comments Download
M chrome/browser/devtools/devtools_file_helper.cc View 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/devtools/devtools_file_watcher.h View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/devtools/devtools_file_watcher.cc View 1 2 3 4 5 4 chunks +36 lines, -15 lines 0 comments Download
M chrome/browser/devtools/devtools_ui_bindings.h View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/devtools/devtools_ui_bindings.cc View 1 2 3 4 1 chunk +9 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/devtools.js View 1 2 3 4 1 chunk +5 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/workspace/IsolatedFileSystemManager.js View 1 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (13 generated)
lushnikov
please, take a look. I also need an advise on backwards-compatibility of the event. Should ...
4 years, 2 months ago (2016-10-04 00:00:33 UTC) #1
dgozman
https://codereview.chromium.org/2384343002/diff/1/chrome/browser/devtools/devtools_file_watcher.cc File chrome/browser/devtools/devtools_file_watcher.cc (right): https://codereview.chromium.org/2384343002/diff/1/chrome/browser/devtools/devtools_file_watcher.cc#newcode44 chrome/browser/devtools/devtools_file_watcher.cc:44: FilePathTimesMap& file_path_times); Out parameters must be passed by pointer. ...
4 years, 2 months ago (2016-10-04 00:17:02 UTC) #4
lushnikov
So now this patch starts sending removed file paths among changed files. https://codereview.chromium.org/2384343002/diff/1/chrome/browser/devtools/devtools_file_watcher.cc File chrome/browser/devtools/devtools_file_watcher.cc ...
4 years, 2 months ago (2016-10-04 01:04:19 UTC) #5
lushnikov
please, take another look
4 years, 2 months ago (2016-10-04 01:43:27 UTC) #8
dgozman
https://codereview.chromium.org/2384343002/diff/60001/chrome/browser/devtools/devtools_file_watcher.cc File chrome/browser/devtools/devtools_file_watcher.cc (right): https://codereview.chromium.org/2384343002/diff/60001/chrome/browser/devtools/devtools_file_watcher.cc#newcode91 chrome/browser/devtools/devtools_file_watcher.cc:91: GetModificationTimes(path, &times_map); One line, avoids copying: GetModificationTimes(path, &file_path_times_[path]) https://codereview.chromium.org/2384343002/diff/60001/chrome/browser/devtools/devtools_file_watcher.cc#newcode146 ...
4 years, 2 months ago (2016-10-04 02:26:41 UTC) #11
lushnikov
https://codereview.chromium.org/2384343002/diff/60001/chrome/browser/devtools/devtools_file_watcher.cc File chrome/browser/devtools/devtools_file_watcher.cc (right): https://codereview.chromium.org/2384343002/diff/60001/chrome/browser/devtools/devtools_file_watcher.cc#newcode91 chrome/browser/devtools/devtools_file_watcher.cc:91: GetModificationTimes(path, &times_map); On 2016/10/04 02:26:41, dgozman wrote: > One ...
4 years, 2 months ago (2016-10-04 02:51:59 UTC) #12
dgozman
lgtm https://codereview.chromium.org/2384343002/diff/80001/chrome/browser/devtools/devtools_file_watcher.cc File chrome/browser/devtools/devtools_file_watcher.cc (right): https://codereview.chromium.org/2384343002/diff/80001/chrome/browser/devtools/devtools_file_watcher.cc#newcode144 chrome/browser/devtools/devtools_file_watcher.cc:144: for (const auto& it : current_times) { I ...
4 years, 2 months ago (2016-10-04 04:41:01 UTC) #17
lushnikov
https://codereview.chromium.org/2384343002/diff/80001/chrome/browser/devtools/devtools_file_watcher.cc File chrome/browser/devtools/devtools_file_watcher.cc (right): https://codereview.chromium.org/2384343002/diff/80001/chrome/browser/devtools/devtools_file_watcher.cc#newcode144 chrome/browser/devtools/devtools_file_watcher.cc:144: for (const auto& it : current_times) { On 2016/10/04 ...
4 years, 2 months ago (2016-10-04 15:56:35 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2384343002/100001
4 years, 2 months ago (2016-10-04 15:57:00 UTC) #21
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 2 months ago (2016-10-04 17:18:17 UTC) #22
commit-bot: I haz the power
4 years, 2 months ago (2016-10-04 17:22:01 UTC) #24
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/2eaab0b3ed3ccdb072e3f60a0ebcf0298841d01d
Cr-Commit-Position: refs/heads/master@{#422838}

Powered by Google App Engine
This is Rietveld 408576698