Use SettingSource for ChooserContextBase

This change refactors the ChooserContextBase::Object class to accept a
content_settings::SettingSource enum for the source, instead of a
string. This change enables the Object class to also be used by
PageInfoUI to distinguish between user and policy permissions by
refactoring ChooserContextBase::GetGrantedObjects() to return list of
unique_ptrs to the Object class.

In addition, the DictionaryValue field of Object was renamed to `value`
to make it easier to differentiate from Object.

Design doc:

Bug: 854329
Change-Id: Ic320bf3709c464e5acc514cde7594aec90c1c7f6
Commit-Queue: Ovidio de Jesús Ruiz-Henríquez <>
Reviewed-by: Dan Beam <>
Reviewed-by: Raymes Khoury <>
Reviewed-by: Theresa <>
Reviewed-by: Reilly Grant <>
Cr-Commit-Position: refs/heads/master@{#623079}
14 files changed