Commit aff47fcf authored by Roman Sorokin's avatar Roman Sorokin Committed by Commit Bot

OOBE: Explicitly ignore some messages from Gaia for cleaner logs

Bug: none
Change-Id: Ifd08d0ccc25463a0502f935b5c1c13eb8a1120bf
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1924521
Commit-Queue: Roman Sorokin [CET] <rsorokin@chromium.org>
Reviewed-by: default avatarDenis Kuznetsov [CET] <antrim@chromium.org>
Cr-Commit-Position: refs/heads/master@{#717575}
parent 44314ed5
......@@ -202,6 +202,16 @@ cr.define('cr.login', function() {
}
};
/**
* Old or not supported on Chrome OS messages.
* @type {!Array<string>}
* @const
*/
const IGNORED_MESSAGES_FROM_GAIA = [
'clearOldAttempts',
'showConfirmCancel',
];
/**
* Initializes the authenticator component.
*/
......@@ -765,7 +775,7 @@ cr.define('cr.login', function() {
const msg = e.data;
if (msg.method in messageHandlers) {
messageHandlers[msg.method].call(this, msg);
} else {
} else if (!IGNORED_MESSAGES_FROM_GAIA.includes(msg.method)) {
console.warn('Unrecognized message from GAIA: ' + msg.method);
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment