Commit 43b9a960 authored by Henrik Grunell's avatar Henrik Grunell Committed by Commit Bot

Use base::nullopt instead of std::string() for Optional parameter in...

Use base::nullopt instead of std::string() for Optional parameter in WebrtcAudioPrivateGetAssociatedSinkFunction.

DCHECK was hit because of incorrect usage; fixed with this change.

Bug: 804836
Change-Id: Ia09f9a6bc563b6468236fd821ade49e1cb8f0fa7
Reviewed-on: https://chromium-review.googlesource.com/883343Reviewed-by: default avatarKen Rockot <rockot@chromium.org>
Commit-Queue: Henrik Grunell <grunell@chromium.org>
Cr-Commit-Position: refs/heads/master@{#531685}
parent 097be610
...@@ -269,7 +269,7 @@ void WebrtcAudioPrivateGetAssociatedSinkFunction:: ...@@ -269,7 +269,7 @@ void WebrtcAudioPrivateGetAssociatedSinkFunction::
} }
} }
if (raw_source_id.empty()) { if (raw_source_id.empty()) {
CalculateHMACOnIOThread(std::string()); CalculateHMACOnIOThread(base::nullopt);
return; return;
} }
GetAudioSystem()->GetAssociatedOutputDeviceID( GetAudioSystem()->GetAssociatedOutputDeviceID(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment