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

Unified Diff: Source/devtools/front_end/ui/Tooltip.js

Issue 1301813002: DevTools: propagate experiments that are enabled by default into default. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: review comments addressed Created 5 years, 4 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/sources/SourcesPanel.js ('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/ui/Tooltip.js
diff --git a/Source/devtools/front_end/ui/Tooltip.js b/Source/devtools/front_end/ui/Tooltip.js
index 51322c3d91f7cee7f35db8632f3921f9eeca20b0..a0bc70ea02a32eb9d0c412bda9557773d5ca563f 100644
--- a/Source/devtools/front_end/ui/Tooltip.js
+++ b/Source/devtools/front_end/ui/Tooltip.js
@@ -132,12 +132,7 @@ WebInspector.Tooltip.installHandler = function(doc)
*/
WebInspector.Tooltip.install = function(element, tooltipContent, actionId)
{
- if (Runtime.experiments.isEnabled("tooltips") && typeof tooltipContent === "string" && tooltipContent === "")
+ if (typeof tooltipContent === "string" && tooltipContent === "")
return;
- if (Runtime.experiments.isEnabled("tooltips"))
- element[WebInspector.Tooltip._symbol] = { content: tooltipContent, actionId: actionId };
- else if (typeof tooltipContent === "string")
- element.title = tooltipContent;
- else
- console.assert("Cannot set an element without custom tooltips enabled");
+ element[WebInspector.Tooltip._symbol] = { content: tooltipContent, actionId: actionId };
}
« no previous file with comments | « Source/devtools/front_end/sources/SourcesPanel.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698