| 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));
|
|
|