| Index: ui/file_manager/file_manager/common/js/error_util.js
|
| diff --git a/ui/file_manager/file_manager/common/js/error_util.js b/ui/file_manager/file_manager/common/js/error_util.js
|
| index 9fd8f118d75361ef974928b4ae88950aafe1875f..4399f1604a2883f6a2202be824939e88f8fbc7d8 100644
|
| --- a/ui/file_manager/file_manager/common/js/error_util.js
|
| +++ b/ui/file_manager/file_manager/common/js/error_util.js
|
| @@ -11,7 +11,13 @@ window.JSErrorCount = 0;
|
| /**
|
| * Count uncaught exceptions.
|
| */
|
| -window.onerror = function() { window.JSErrorCount++; };
|
| +window.onerror = function(message, url) {
|
| + // Analytics raises errors if the tracker instance is initiated in guest mode.
|
| + // crbug.com/459983
|
| + if (url === 'chrome://resources/js/analytics.js')
|
| + return;
|
| + window.JSErrorCount++;
|
| +};
|
|
|
| // Overrides console.error() to count errors.
|
| /**
|
|
|