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

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

Issue 2487293002: DevTools: introduce sync checkmarks icons in StylesSidebarPane. (Closed)
Patch Set: address comments Created 4 years, 1 month 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 209cfb6d99c616038bb3263c06df6d1012842075..681681e29798ae2a13c055b3b3091ff72e9ae213 100644
--- a/third_party/WebKit/Source/devtools/front_end/persistence/Persistence.js
+++ b/third_party/WebKit/Source/devtools/front_end/persistence/Persistence.js
@@ -17,12 +17,15 @@ WebInspector.Persistence = class extends WebInspector.Object {
/** @type {!Map<string, number>} */
this._filePathPrefixesToBindingCount = new Map();
- if (Runtime.experiments.isEnabled('persistence2'))
+ if (Runtime.experiments.isEnabled('persistence2')) {
+ var linkDecorator = new WebInspector.PersistenceUtils.LinkDecorator(this);
+ WebInspector.Linkifier.setLinkDecorator(linkDecorator);
this._mapping =
new WebInspector.Automapping(workspace, this._onBindingCreated.bind(this), this._onBindingRemoved.bind(this));
- else
+ } else {
this._mapping = new WebInspector.DefaultMapping(
workspace, fileSystemMapping, this._onBindingCreated.bind(this), this._onBindingRemoved.bind(this));
+ }
}
/**

Powered by Google App Engine
This is Rietveld 408576698