It seems odd to try to base64 decode the app name (as the first step of mapAppKeyToAppId) -- is there precedent in chrome for doing that?