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

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

Issue 2567283004: DevTools: drastically simplify UISourceCode.checkContentUpdated (Closed)
Patch Set: kill stale test Created 4 years 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 3ff033108c25dea2497d31b1acf695a595943ec8..641d357201eb8f158d168a1d85edd6c3b9882829 100644
--- a/third_party/WebKit/Source/devtools/front_end/sources/SourcesSearchScope.js
+++ b/third_party/WebKit/Source/devtools/front_end/sources/SourcesSearchScope.js
@@ -222,15 +222,7 @@ Sources.SourcesSearchScope = class {
if (uiSourceCode.isDirty())
contentLoaded.call(this, uiSourceCode, uiSourceCode.workingCopy());
else
- uiSourceCode.checkContentUpdated(true, contentUpdated.bind(this, uiSourceCode));
- }
-
- /**
- * @param {!Workspace.UISourceCode} uiSourceCode
- * @this {Sources.SourcesSearchScope}
- */
- function contentUpdated(uiSourceCode) {
- uiSourceCode.requestContent().then(contentLoaded.bind(this, uiSourceCode));
+ uiSourceCode.requestContent().then(contentLoaded.bind(this, uiSourceCode));
}
/**

Powered by Google App Engine
This is Rietveld 408576698