angler-fishThe Vulnerability History Project

Refactors WebsiteSettingsBubbleController to use PermissionMenuModel.

      In so doing, moves common code into a new base class, PermissionSelector,
which can be used by both views and cocoa UI code to define the menu for
each permission.

I'd like to take this farther and move the call to OnSitePermissionChanged() to
PermissionSelector.  It would require the PermissionSelector keeping a (weak)
pointer to the WebsiteSettings object - is that a reasonable change to make?

The two subclasses for PermissionSelector deviate a bit - for views, the
PermissionSelectorView contains all of the UI for displaying the whole line. 
For cocoa, it only acts as a bridge between the menu model and the UI for the
menu.

BUG=None

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@264329 0039d316-1c4b-4281-b951-d872f2087c98
    
commit 2420e5a85e9db9bf493db47315184856d395c2d5
-37
-84
-56
+101 -26
+55 -25
+25 -6
+1 -4
+33 -18
+10 -7
+1 -1
+22 -31
+25 -21
+24 -24
+3 -5
+4 -4
+1 -3
-1
expand_less