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

Unified Diff: third_party/WebKit/Source/devtools/front_end/Runtime.js

Issue 2311303002: Revert of DevTools: remove UISourceCodeFrame from context when switching panels. (Closed)
Patch Set: 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/sources/TabbedEditorContainer.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/devtools/front_end/Runtime.js
diff --git a/third_party/WebKit/Source/devtools/front_end/Runtime.js b/third_party/WebKit/Source/devtools/front_end/Runtime.js
index c0ff0305bd74e470e0315963458d0ac1d22b4bf6..9c96dfd843900188328837e9f35274e7c49014a4 100644
--- a/third_party/WebKit/Source/devtools/front_end/Runtime.js
+++ b/third_party/WebKit/Source/devtools/front_end/Runtime.js
@@ -451,7 +451,7 @@
{
if (!predicate)
return false;
- var contextTypes = extension.descriptor().contextTypes;
+ var contextTypes = /** @type {!Array.<string>|undefined} */ (extension.descriptor().contextTypes);
if (!contextTypes)
return true;
for (var i = 0; i < contextTypes.length; ++i) {
@@ -919,22 +919,6 @@
{
// FIXME: should be WebInspector.UIString() but runtime is not l10n aware yet.
return this._descriptor["title-" + Runtime._platform] || this._descriptor["title"];
- },
-
- /**
- * @param {function(new:Object)} contextType
- * @return {boolean}
- */
- hasContextType: function(contextType)
- {
- var contextTypes = this.descriptor().contextTypes;
- if (!contextTypes)
- return false;
- for (var i = 0; i < contextTypes.length; ++i) {
- if (contextType === this._module._manager._resolve(contextTypes[i]))
- return true;
- }
- return false;
}
}
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/sources/TabbedEditorContainer.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698