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

Unified Diff: chrome/browser/devtools/devtools_ui_bindings.cc

Issue 2384343002: DevTools: improve DevTools file watcher to send added and removed paths (Closed)
Patch Set: honing skills. Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/devtools/devtools_ui_bindings.cc
diff --git a/chrome/browser/devtools/devtools_ui_bindings.cc b/chrome/browser/devtools/devtools_ui_bindings.cc
index fd0690afd29cde123e98efa4e6caaaeb814999cc..fd3f0dd9223737448c8a11a3282c3041fd5ad212 100644
--- a/chrome/browser/devtools/devtools_ui_bindings.cc
+++ b/chrome/browser/devtools/devtools_ui_bindings.cc
@@ -977,10 +977,17 @@ void DevToolsUIBindings::FileSystemRemoved(
}
void DevToolsUIBindings::FilePathsChanged(
- const std::vector<std::string>& file_paths) {
+ const std::vector<std::string>& changed_paths,
+ const std::vector<std::string>& added_paths,
+ const std::vector<std::string>& removed_paths) {
base::ListValue list;
- for (auto path : file_paths)
+ for (auto path : changed_paths)
+ list.AppendString(path);
+ for (auto path : added_paths)
list.AppendString(path);
+ for (auto path : removed_paths)
+ list.AppendString(path);
+
CallClientFunction("DevToolsAPI.fileSystemFilesChanged",
&list, NULL, NULL);
}
« no previous file with comments | « chrome/browser/devtools/devtools_ui_bindings.h ('k') | third_party/WebKit/Source/devtools/front_end/devtools.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698