Add a map key comparator to make media menu's order consistent
commit1d9c7eb43ebed327380a2e1e7fdc9ce2602be31c
authorjialiul <jialiul@chromium.org>
Mon, 20 Apr 2015 23:26:02 +0000 (20 16:26 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 20 Apr 2015 23:26:57 +0000 (20 23:26 +0000)
tree114d347175ecb1e2f6aaf6399c2565af9338f6e3
parentfde2180113cdeb3ae9c7a2f999e7c3233ed37e5b
Add a map key comparator to make media menu's order consistent

Use NSPopUpButton's tag to keep track of MediaStreamType associated
with the dropdown button, and use this value to order items in
MediaMenuPartsMap. Such that Microphone, camera and/or other
possible devices always show up in the same order.

BUG=321525

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

Cr-Commit-Position: refs/heads/master@{#325936}
chrome/browser/ui/cocoa/content_settings/content_setting_bubble_cocoa.h
chrome/browser/ui/cocoa/content_settings/content_setting_bubble_cocoa.mm