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

Unified Diff: third_party/WebKit/Source/devtools/front_end/devtools_compatibility.js

Issue 2651043006: DevTools: Remove files in the navigator when they are deleted externally (Closed)
Patch Set: fix test Created 3 years, 11 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: third_party/WebKit/Source/devtools/front_end/devtools_compatibility.js
diff --git a/third_party/WebKit/Source/devtools/front_end/devtools_compatibility.js b/third_party/WebKit/Source/devtools/front_end/devtools_compatibility.js
index eb7780c5ba15e5bb6f92469f4a52f1e5a5dd5db4..ab5ebefc94005178f36eb7e5c186e187dd3e7992 100644
--- a/third_party/WebKit/Source/devtools/front_end/devtools_compatibility.js
+++ b/third_party/WebKit/Source/devtools/front_end/devtools_compatibility.js
@@ -176,9 +176,18 @@
/**
* @param {!Array<string>} changedPaths
- */
- fileSystemFilesChanged(changedPaths) {
- this._dispatchOnInspectorFrontendAPI('fileSystemFilesChanged', [changedPaths]);
+ * @param {!Array<string>} addedPaths
+ * @param {!Array<string>} removedPaths
+ */
+ fileSystemFilesChangedAddedRemoved(changedPaths, addedPaths, removedPaths) {
+ // Support for legacy front-ends (<M58)
+ if (window['InspectorFrontendAPI'] && window['InspectorFrontendAPI']['fileSystemFilesChanged']) {
+ this._dispatchOnInspectorFrontendAPI(
+ 'fileSystemFilesChanged', [changedPaths.concat(addedPaths).concat(removedPaths)]);
+ } else {
+ this._dispatchOnInspectorFrontendAPI(
+ 'fileSystemFilesChangedAddedRemoved', [changedPaths, addedPaths, removedPaths]);
+ }
}
/**

Powered by Google App Engine
This is Rietveld 408576698