Refactor ProtectedMediaIdentifierPermissionContext to derive from PermissionContextBase.
commit1baa38863fad853087e411af1fff950ba16cf5de
authortimvolodine <timvolodine@chromium.org>
Fri, 12 Dec 2014 16:33:12 +0000 (12 08:33 -0800)
committerCommit bot <commit-bot@chromium.org>
Fri, 12 Dec 2014 16:33:46 +0000 (12 16:33 +0000)
tree8eaa3ce0ef2d6e653ab09e7c9e89ffdcb2f8f58f
parent5a17b565c9dcf965c0942a06a0b6595c2699f938
Refactor ProtectedMediaIdentifierPermissionContext to derive from PermissionContextBase.

Refactoring of ProtectedMediaIdentifierPermissionContext to derive from
PermissionContextBase class to conform with other APIs like geolocation
and midi. This has the advantage of less code and a consistent path for
all permissions. Also it makes it easier to implement PermissionService
because some functionality like HasPermission() can be implemented at
the level of PermissionContextBase.

Also add the corresponding UMA bits in histograms.xml and
permission_context_uma_util.cc.

BUG=

Review URL: https://codereview.chromium.org/769103002

Cr-Commit-Position: refs/heads/master@{#308100}
chrome/browser/chrome_content_browser_client.cc
chrome/browser/content_settings/permission_context_base.cc
chrome/browser/content_settings/permission_context_base.h
chrome/browser/content_settings/permission_context_uma_util.cc
chrome/browser/media/protected_media_identifier_permission_context.cc
chrome/browser/media/protected_media_identifier_permission_context.h
chrome/browser/media/protected_media_identifier_permission_context_factory.cc
tools/metrics/histograms/histograms.xml