Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(101)

Unified Diff: content/public/browser/desktop_media_id.cc

Issue 2291893002: Let Contraints Controll Mute/Unmute Audio Local Playback For Desktop Sharing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/common/media/media_stream_options.h ('k') | content/public/browser/web_contents_media_capture_id.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/desktop_media_id.cc
diff --git a/content/public/browser/desktop_media_id.cc b/content/public/browser/desktop_media_id.cc
index 8a20598af67f82db03a1dffad8601597df05d1c3..6c0027d40ad65bfdaf8f646d5a849ab1328834e4 100644
--- a/content/public/browser/desktop_media_id.cc
+++ b/content/public/browser/desktop_media_id.cc
@@ -129,8 +129,8 @@ bool DesktopMediaID::operator==(const DesktopMediaID& other) const {
// window:"window_id:aura_id".
DesktopMediaID DesktopMediaID::Parse(const std::string& str) {
// For WebContents type.
- WebContentsMediaCaptureId web_id = WebContentsMediaCaptureId::Parse(str);
- if (!web_id.is_null())
+ WebContentsMediaCaptureId web_id;
+ if (WebContentsMediaCaptureId::Parse(str, &web_id))
return DesktopMediaID(TYPE_WEB_CONTENTS, 0, web_id);
// For screen and window types.
« no previous file with comments | « content/common/media/media_stream_options.h ('k') | content/public/browser/web_contents_media_capture_id.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698