Changeset 215944 in webkit
- Timestamp:
- Apr 28, 2017 1:57:08 PM (7 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r215943 r215944 1 2017-04-28 Eric Carlson <eric.carlson@apple.com> 2 3 Implement ondevicechange 4 https://bugs.webkit.org/show_bug.cgi?id=169872 5 6 Unreviewed, remove some dead code accidentally committed in r215929. 7 8 * platform/mediastream/CaptureDeviceManager.cpp: 9 1 10 2017-04-28 Chris Dumez <cdumez@apple.com> 2 11 -
trunk/Source/WebCore/platform/mediastream/CaptureDeviceManager.cpp
r215929 r215944 80 80 } 81 81 82 #if 083 std::optional<CaptureDevice> CaptureDeviceManager::captureDeviceFromPersistentID(const String& captureDeviceID, const String& idHashSalt)84 {85 for (auto& device : captureDevices()) {86 auto hashedID = RealtimeMediaSourceCenter::singleton().hashStringWithSalt(device.persistentId(), idHashSalt);87 if (device.persistentId() == captureDeviceID)88 return device;89 }90 91 return std::nullopt;92 }93 94 for (auto& captureDevice : getMediaStreamDevices()) {95 auto hashedID = RealtimeMediaSourceCenter::singleton().hashStringWithSalt(captureDevice.persistentId(), idHashSalt);96 if (hashedID == uniqueID)97 return String { captureDevice.persistentId() };98 }99 100 return Exception { NOT_FOUND_ERR };101 102 #endif103 104 82 std::optional<CaptureDevice> CaptureDeviceManager::deviceWithUID(const String& deviceUID, RealtimeMediaSource::Type type) 105 83 {
Note: See TracChangeset
for help on using the changeset viewer.