Clean-up refactoring of chrome_content_browser_client to use GetPermissionContext...
commit3d4b61cf6e1ece497318d9b6c5110000445dae6b
authortimvolodine <timvolodine@chromium.org>
Thu, 5 Feb 2015 20:25:33 +0000 (5 12:25 -0800)
committerCommit bot <commit-bot@chromium.org>
Thu, 5 Feb 2015 20:26:28 +0000 (5 20:26 +0000)
treec070c7b6207f137c72896d4fd76b8dac02fcb4a5
parenta86ffa06e4415b155a96b9513ed2f18e0d9deaf6
Clean-up refactoring of chrome_content_browser_client to use GetPermissionContext consistently.

Eliminate some duplicate code now that PermissionContextBase is the base class
for all other permission contexts and we have a helper function
GetPermissionContext to obtain the proper permission context class depending
on permission type. Also move PermissionToContentSetting to anonymous namespace.

BUG=

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

Cr-Commit-Position: refs/heads/master@{#314866}
chrome/browser/chrome_content_browser_client.cc
chrome/browser/services/gcm/push_messaging_permission_context.cc
chrome/browser/services/gcm/push_messaging_permission_context.h