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

Unified Diff: third_party/WebKit/Source/devtools/front_end/main/Main.js

Issue 2748023006: [DevTools] Make ConsoleModel not inherit from SDKModel (Closed)
Patch Set: stray change Created 3 years, 9 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/main/Main.js
diff --git a/third_party/WebKit/Source/devtools/front_end/main/Main.js b/third_party/WebKit/Source/devtools/front_end/main/Main.js
index 10ca4c15093448ddaf6a5dd2bc9c623121191d6e..47b3de84e8cc26e066df621e566daa283ef8778c 100644
--- a/third_party/WebKit/Source/devtools/front_end/main/Main.js
+++ b/third_party/WebKit/Source/devtools/front_end/main/Main.js
@@ -637,13 +637,8 @@ Main.Main.WarningErrorCounter = class {
}
_update() {
- var errors = 0;
- var warnings = 0;
- var targets = SDK.targetManager.targets();
- for (var i = 0; i < targets.length; ++i) {
- errors += targets[i].consoleModel.errors();
- warnings += targets[i].consoleModel.warnings();
- }
+ var errors = SDK.multitargetConsoleModel.errors();
+ var warnings = SDK.multitargetConsoleModel.warnings();
this._titles = [];
this._toolbarItem.setVisible(!!(errors || warnings));

Powered by Google App Engine
This is Rietveld 408576698