desktop-pwas: Add AppRegistrar

AppRegistrar should be used by clients to query information about apps.
For example, if an app is installed.

AppRegistrar has two implementations BookmarkAppRegistrar and
WebAppRegistrar. BookmarkAppRegistrar is built on top of extensions.

PendingBookmarkApp uses BookmarkAppRegistrar to avoid querying the
ExtensionRegistry and ExtensionPrefs directly.

Bug: 916381

Change-Id: I0706bef37f2ecbf4b86d63eafe8de1dd168f440a
Commit-Queue: Giovanni Ortuño Urquidi <>
Reviewed-by: Alexey Baskakov <>
Cr-Commit-Position: refs/heads/master@{#637598}
13 files changed