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

Unified Diff: third_party/WebKit/Source/devtools/front_end/persistence/Persistence.js

Issue 2418813005: DevTools: [Persistence] implement automapping (Closed)
Patch Set: address comments 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: third_party/WebKit/Source/devtools/front_end/persistence/Persistence.js
diff --git a/third_party/WebKit/Source/devtools/front_end/persistence/Persistence.js b/third_party/WebKit/Source/devtools/front_end/persistence/Persistence.js
index 8423ebee8e0038b4f2f6007deff60d9e2f3c20ef..1bc0a9e23171f28a7f243b017c7c2440e1790efa 100644
--- a/third_party/WebKit/Source/devtools/front_end/persistence/Persistence.js
+++ b/third_party/WebKit/Source/devtools/front_end/persistence/Persistence.js
@@ -17,8 +17,11 @@ WebInspector.Persistence = function(workspace, breakpointManager, fileSystemMapp
/** @type {!Map<string, number>} */
this._filePathPrefixesToBindingCount = new Map();
- this._mapping = new WebInspector.DefaultMapping(workspace, fileSystemMapping, this._onBindingCreated.bind(this), this._onBindingRemoved.bind(this));
-};
+ if (Runtime.experiments.isEnabled("persistence2"))
+ this._mapping = new WebInspector.Automapping(workspace, this._onBindingCreated.bind(this), this._onBindingRemoved.bind(this));
+ else
+ this._mapping = new WebInspector.DefaultMapping(workspace, fileSystemMapping, this._onBindingCreated.bind(this), this._onBindingRemoved.bind(this));
+}
WebInspector.Persistence._binding = Symbol("Persistence.Binding");
WebInspector.Persistence._muteCommit = Symbol("Persistence.MuteCommit");
@@ -234,12 +237,14 @@ WebInspector.Persistence.prototype = {
* @constructor
* @param {!WebInspector.UISourceCode} network
* @param {!WebInspector.UISourceCode} fileSystem
+ * @param {boolean} exactMatch
*/
-WebInspector.PersistenceBinding = function(network, fileSystem)
+WebInspector.PersistenceBinding = function(network, fileSystem, exactMatch)
{
this.network = network;
this.fileSystem = fileSystem;
+ this.exactMatch = exactMatch;
};
/** @type {!WebInspector.Persistence} */
-WebInspector.persistence;
+WebInspector.persistence;

Powered by Google App Engine
This is Rietveld 408576698