Looking at ChromeRuntimeAPIDelegate::GetPreviousExtensionVersion, it calls
const Extension* old = service->GetExtensionById(extension->id(), /*include_disabled=*/ true);
I'm changing this to ExtensionRegistry from ExtensionService in
https://codereview.chromium.org/2892843002/
The logic uses mask
ENABLED | DISABLED | BLACKLISTED | BLOCKED
which leaves TERMINATED.
So if during an update if the extension was TERMINATED, we could potentially
send incorrect version to runtime.onInstalled.
In the spirit of keeping CL focused on one thing and easy to account
for blaming later on, I'm going to do this separately.
Comment 1 by bugdroid1@chromium.org
, May 26 2017