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

Unified Diff: third_party/WebKit/Source/devtools/front_end/sources/SourcesSearchScope.js

Issue 2349343002: DevTools: introduce persistence/ module (Closed)
Patch Set: DevTools: add persistence/ module Created 4 years, 3 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/sources/SourcesSearchScope.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sources/SourcesSearchScope.js b/third_party/WebKit/Source/devtools/front_end/sources/SourcesSearchScope.js
index a3f4e5a5927f8d6153ae19911405d17ca866ed9e..4c95aece1bb5f3b0c210182b8cbf89d5b8ccd3e2 100644
--- a/third_party/WebKit/Source/devtools/front_end/sources/SourcesSearchScope.js
+++ b/third_party/WebKit/Source/devtools/front_end/sources/SourcesSearchScope.js
@@ -145,6 +145,9 @@ WebInspector.SourcesSearchScope.prototype = {
var uiSourceCodes = project.uiSourceCodes();
for (var i = 0; i < uiSourceCodes.length; ++i) {
var uiSourceCode = uiSourceCodes[i];
+ var binding = WebInspector.persistence.binding(uiSourceCode);
+ if (binding && binding.persistent === uiSourceCode)
+ continue;
if (dirtyOnly && !uiSourceCode.isDirty())
continue;
if (this._searchConfig.filePathMatchesFileQuery(uiSourceCode.fullDisplayName()))

Powered by Google App Engine
This is Rietveld 408576698