Skip to content

Commit f585904

Browse files
committed
Update nw_screen_api.cc: Create DesktopMediaList::Type
https://chromium-review.googlesource.com/c/chromium/src/+/2700637
1 parent 7f93539 commit f585904

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/api/nw_screen_api.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,15 +207,15 @@ namespace extensions {
207207
if (screens) {
208208
std::unique_ptr<DesktopMediaList> screen_media_list =
209209
std::make_unique<NativeDesktopMediaList>(
210-
content::DesktopMediaID::TYPE_SCREEN,
210+
DesktopMediaList::Type::kScreen,
211211
webrtc::DesktopCapturer::CreateScreenCapturer(options));
212212
media_list_.push_back(std::move(screen_media_list));
213213
}
214214

215215
if (windows) {
216216
std::unique_ptr<DesktopMediaList> window_media_list =
217217
std::make_unique<NativeDesktopMediaList>(
218-
content::DesktopMediaID::TYPE_WINDOW,
218+
DesktopMediaList::Type::kWindow,
219219
webrtc::DesktopCapturer::CreateWindowCapturer(options));
220220
media_list_.push_back(std::move(window_media_list));
221221
}

0 commit comments

Comments
 (0)