| 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;
|
|
|