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

Unified Diff: third_party/WebKit/Source/devtools/front_end/console/ConsoleView.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/console/ConsoleView.js
diff --git a/third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js b/third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js
index 0d134561edf094872a51bd9f15e6f1421e81614d..51034788644a6eadc6f28e06f140fb82bb8116cb 100644
--- a/third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js
+++ b/third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js
@@ -266,8 +266,8 @@ WebInspector.ConsoleView.prototype = {
targetAdded: function(target)
{
this._viewport.invalidate();
- if (WebInspector.targetManager.targets().length > 1 && WebInspector.targetManager.mainTarget().isPage())
- this._showAllMessagesCheckbox.element.classList.toggle("hidden", false);
+ var shouldShowCheck = WebInspector.targetManager.targets(WebInspector.Target.Capability.Browser).length > 1;
dgozman 2016/07/13 00:08:29 Capability.Browser -> Capability.JS
dgozman 2016/07/13 00:08:29 haveMultipleContexts
eostroukhov-old 2016/07/13 00:36:29 Done.
eostroukhov-old 2016/07/13 00:36:29 Done.
dgozman 2016/07/13 00:41:52 Not done :-)
+ this._showAllMessagesCheckbox.element.classList.toggle("hidden", shouldShowCheck);
dgozman 2016/07/13 00:08:29 !haveMultipleContexts
eostroukhov-old 2016/07/13 00:36:29 Done.
},
/**

Powered by Google App Engine
This is Rietveld 408576698