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

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

Issue 664713002: DevTools: do not suggest mapping workspace to itself, remove workspace mapping tip from behind expe… (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 2 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 | « Source/devtools/front_end/main/Main.js ('k') | Source/devtools/front_end/sourcesView.css » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/sources/WorkspaceMappingTip.js
diff --git a/Source/devtools/front_end/sources/WorkspaceMappingTip.js b/Source/devtools/front_end/sources/WorkspaceMappingTip.js
index ee0db7b970eb1c343d7b7986001320c631830d28..19a68b4f44d1773d56c8d1c914bfdfdc128b4e56 100644
--- a/Source/devtools/front_end/sources/WorkspaceMappingTip.js
+++ b/Source/devtools/front_end/sources/WorkspaceMappingTip.js
@@ -26,11 +26,9 @@ WebInspector.WorkspaceMappingTip.prototype = {
_editorSelected: function(event)
{
var uiSourceCode = /** @type {!WebInspector.UISourceCode} */ (event.data);
- if (Runtime.experiments.isEnabled("suggestUsingWorkspace")) {
- if (this._editorSelectedTimer)
- clearTimeout(this._editorSelectedTimer);
- this._editorSelectedTimer = setTimeout(this._updateSuggestedMappingInfobar.bind(this, uiSourceCode), 3000);
- }
+ if (this._editorSelectedTimer)
+ clearTimeout(this._editorSelectedTimer);
+ this._editorSelectedTimer = setTimeout(this._updateSuggestedMappingInfobar.bind(this, uiSourceCode), 3000);
},
/**
@@ -52,7 +50,7 @@ WebInspector.WorkspaceMappingTip.prototype = {
return;
}
- var networkProjects = this._workspace.projectsForType(WebInspector.projectTypes.FileSystem);
+ var networkProjects = this._workspace.projectsForType(WebInspector.projectTypes.Network);
networkProjects = networkProjects.concat(this._workspace.projectsForType(WebInspector.projectTypes.ContentScripts));
for (var i = 0; i < networkProjects.length; ++i) {
var name = uiSourceCode.name();
« no previous file with comments | « Source/devtools/front_end/main/Main.js ('k') | Source/devtools/front_end/sourcesView.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698