Make ErrorConsole record lastError errors

Take the easy way out, and just log an error in any case where we have a
"lastError" message. These get sent to the ErrorConsole.
Only report the lastError error if the developer did not check runtime.lastError, to reduce log spam.

BUG=362625

Review URL: https://codereview.chromium.org/245743003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@265439 0039d316-1c4b-4281-b951-d872f2087c98
5 files changed