[Global Media Controls] Use MPRemoteCommandCenter to receive key events

This CL adds a new component to interface with MPRemoteCommandCenter:
https://developer.apple.com/documentation/mediaplayer/mpremotecommandcenter?language=objc

This is used to receive media key presses instead of using an event tap
so that we avoid an issue where the OS prompts the user for extra
privileges when the event tap is created.


Bug: 930180
Change-Id: I3877499a49529c88427590cc013700b2e5e985ee
Reviewed-on: https://chromium-review.googlesource.com/c/1480702
Reviewed-by: Scott Violet <[email protected]>
Reviewed-by: Elly Fong-Jones <[email protected]>
Commit-Queue: Tommy Steimel <[email protected]>
Cr-Commit-Position: refs/heads/master@{#635295}
diff --git a/content/browser/BUILD.gn b/content/browser/BUILD.gn
index 765c9d89..d45a2eb 100644
--- a/content/browser/BUILD.gn
+++ b/content/browser/BUILD.gn
@@ -2433,6 +2433,7 @@
       "//media",
       "//third_party/mozilla",
       "//ui/accelerated_widget_mac",
+      "//ui/base/now_playing",
     ]
     libs += [
       "Carbon.framework",