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

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

Issue 397273005: DevTools: don't fail on advanced search in case opened before workspace is initialized. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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
« no previous file with comments | « LayoutTests/http/tests/inspector/search/sources-search-scope-in-files.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/sources/SourcesSearchScope.js
diff --git a/Source/devtools/front_end/sources/SourcesSearchScope.js b/Source/devtools/front_end/sources/SourcesSearchScope.js
index d4940cf310170ae1817fa7d3333e9c62a0f9d010..f19999fd6f0d8c5db35b59fad33f814560f2ac7c 100644
--- a/Source/devtools/front_end/sources/SourcesSearchScope.js
+++ b/Source/devtools/front_end/sources/SourcesSearchScope.js
@@ -34,7 +34,6 @@ WebInspector.SourcesSearchScope = function()
{
// FIXME: Add title once it is used by search controller.
this._searchId = 0;
- this._workspace = WebInspector.workspace;
}
WebInspector.SourcesSearchScope.prototype = {
@@ -86,7 +85,7 @@ WebInspector.SourcesSearchScope.prototype = {
return WebInspector.settings.searchInContentScripts.get() || project.type() !== WebInspector.projectTypes.ContentScripts;
}
- return this._workspace.projects().filter(filterOutServiceProjects).filter(filterOutContentScriptsIfNeeded);
+ return WebInspector.workspace.projects().filter(filterOutServiceProjects).filter(filterOutContentScriptsIfNeeded);
},
/**
« no previous file with comments | « LayoutTests/http/tests/inspector/search/sources-search-scope-in-files.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698