Chromium Code Reviews
DescriptionAdd a policy to always show the Cast toolbar icon
This CL adds a policy "ShowCastIconInToolbar," which will force the media router
toolbar action to be always shown in the toolbar or the overflow menu when
enabled.
When the policy is enabled, the action's context menu item "Always show icon"
will be replaced by "Added by your administrator," similar to the item
"Installed by your administrator" for policy-enabled extensions. This menu item
will always be disabled.
This CL adds a new pref with ID prefs::kShowCastIconInToolbar for the policy.
When we later remove ComponentMigrationHelper and the prefs associated with it
that we currently use to pin the media router action to the toolbar, we can use
prefs::kShowCastIconInToolbar to record user-initiated pinning of the action to
the toolbar.
BUG=666003
Review-Url: https://codereview.chromium.org/2559323002
Cr-Commit-Position: refs/heads/master@{#447289}
Committed: https://chromium.googlesource.com/chromium/src/+/1a5f2851a8a4cf5222a676dc8bcc7d52fc29a7f1
Patch Set 1 #
Total comments: 8
Patch Set 2 : Rebase #Patch Set 3 : Address Derek's comments #
Total comments: 4
Patch Set 4 : Rebase #Patch Set 5 : Address Derek's comments #
Total comments: 11
Patch Set 6 : Rebase #Patch Set 7 : Address Mike's comments #Patch Set 8 : Rebase #
Total comments: 7
Patch Set 9 : Address Julian's comments #Patch Set 10 : Rebase #Messages
Total messages: 50 (28 generated)
|