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

Unified Diff: third_party/WebKit/Source/devtools/front_end/profiler/ProfileLauncherView.js

Issue 2137773002: [DevTools] Replace the target type with capabilities (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing the code review comments Created 4 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
Index: third_party/WebKit/Source/devtools/front_end/profiler/ProfileLauncherView.js
diff --git a/third_party/WebKit/Source/devtools/front_end/profiler/ProfileLauncherView.js b/third_party/WebKit/Source/devtools/front_end/profiler/ProfileLauncherView.js
index 0cec690686801e0203c7840594490aa857601171..d11ff1acb1aca80ff68554e4d4c4c5f8ce6df3f3 100644
--- a/third_party/WebKit/Source/devtools/front_end/profiler/ProfileLauncherView.js
+++ b/third_party/WebKit/Source/devtools/front_end/profiler/ProfileLauncherView.js
@@ -87,7 +87,7 @@ WebInspector.ProfileLauncherView.prototype = {
_updateLoadButtonLayout: function()
{
- this._loadButton.classList.toggle("multi-target", WebInspector.targetManager.targetsWithJSContext().length > 1);
+ this._loadButton.classList.toggle("multi-target", WebInspector.targetManager.hasTargets(WebInspector.Target.Capability.JS));
dgozman 2016/07/13 00:08:29 .targets(WebInspector.Target.Capability.JS).length
eostroukhov-old 2016/07/13 00:36:29 Oops. Thanks!
},
/**

Powered by Google App Engine
This is Rietveld 408576698