Move desktop picker ui implementation out of extensions

This CL moves the picker UI triggered from extensions into
DesktopMediaPickerFactoryImpl which lives under
/chrome/browser/media. We are planning to use this common
implementation to trigger the same picker UI for getDisplayMedia().

Bug: 326740
Change-Id: Idb8b9d094ce55ecc8281c3db1f1acb0f5e3a24f1
Commit-Queue: Emircan Uysaler <>
Reviewed-by: Weiyong Yao <>
Reviewed-by: Sergey Ulanov <>
Cr-Commit-Position: refs/heads/master@{#581953}
10 files changed