crosswalk-project/crosswalk — pull request #1562 by mbbill (2014-02-08 02:22:33+00:00)
Title: [Application] Added permission policy manager

This patch include a initial support of application policy management which will work together with the application permission management system. Here is a brief introduction about the policy handling process.
During application installation, the permission stored in the manifest has to be filtered and converted into the stored permission list. In this process, the permission policy manager is responsible for generating the appropriate permission value based on either internal or external (OEM) policies. For example, we may have ["bluetooth"] in the manifest, but according to the policies, any bluetooth request should be confirmed by user, therefore, instead of writing "bluetooth:ALLOW", we write "bluetooth:PROMPT" into database.