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

Issue 2300083002: Wrap MediaMetadata in base::Optional in content and chrome (Closed)

Created:
4 years, 3 months ago by Zhiqiang Zhang (Slow)
Modified:
4 years, 3 months ago
CC:
avayvod+watch_chromium.org, chromium-reviews, darin-cc_chromium.org, feature-media-reviews_chromium.org, jam, mcasas+watch+vc_chromium.org, miu+watch_chromium.org, mlamouri+watch-content_chromium.org, mlamouri+watch-media_chromium.org, posciak+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Wrap MediaMetadata in base::Optional in content and chrome Since base::Optional<> has already been in use. It's helpful to wrap MediaMetadata in base::Optional<>, so that the browser can know whether the page has set the metadata or not. BUG=643195 Committed: https://crrev.com/24ae1ae1f9d4e7f6668cfc554cfb8bface3650b9 Cr-Commit-Position: refs/heads/master@{#417255}

Patch Set 1 #

Total comments: 9

Patch Set 2 : fixed tests #

Patch Set 3 : addressed Mounir's comments #

Total comments: 7

Patch Set 4 : addressed comments #

Patch Set 5 : fix Android build #

Unified diffs Side-by-side diffs Delta from patch set Stats (+129 lines, -65 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/media/ui/MediaSessionTabHelper.java View 1 chunk +3 lines, -3 lines 0 comments Download
M content/browser/android/web_contents_observer_proxy.h View 1 chunk +4 lines, -3 lines 0 comments Download
M content/browser/android/web_contents_observer_proxy.cc View 1 2 2 chunks +7 lines, -3 lines 0 comments Download
M content/browser/media/android/browser_media_session_manager.h View 1 2 3 2 chunks +4 lines, -2 lines 0 comments Download
M content/browser/media/android/browser_media_session_manager.cc View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
M content/browser/media/android/browser_media_session_manager_browsertest.cc View 1 2 3 4 7 chunks +73 lines, -30 lines 0 comments Download
M content/browser/media/session/media_session.h View 3 chunks +4 lines, -3 lines 0 comments Download
M content/browser/media/session/media_session.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/media/session/media_session_browsertest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/common/media/media_metadata_sanitizer.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M content/common/media/media_metadata_sanitizer.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M content/common/media/media_session_messages_android.h View 2 chunks +2 lines, -1 line 0 comments Download
M content/public/browser/web_contents_observer.h View 1 2 3 3 chunks +6 lines, -4 lines 0 comments Download
M content/renderer/media/android/renderer_media_session_manager.h View 3 2 chunks +3 lines, -1 line 0 comments Download
M content/renderer/media/android/renderer_media_session_manager.cc View 1 2 3 2 chunks +6 lines, -4 lines 0 comments Download
M content/renderer/media/android/webmediasession_android.cc View 3 chunks +7 lines, -5 lines 0 comments Download

Messages

Total messages: 37 (19 generated)
Zhiqiang Zhang (Slow)
Moved this CL out to reduce the "per-frame metadata" CL. I'm adding you to review ...
4 years, 3 months ago (2016-09-01 16:10:34 UTC) #2
mlamouri (slow - plz ping)
lgtm https://codereview.chromium.org/2300083002/diff/1/content/browser/media/android/browser_media_session_manager.cc File content/browser/media/android/browser_media_session_manager.cc (right): https://codereview.chromium.org/2300083002/diff/1/content/browser/media/android/browser_media_session_manager.cc#newcode36 content/browser/media/android/browser_media_session_manager.cc:36: if (insecure_metadata && Maybe `insecure_metadata.has_value()` https://codereview.chromium.org/2300083002/diff/1/content/public/browser/web_contents_observer.h File content/public/browser/web_contents_observer.h ...
4 years, 3 months ago (2016-09-01 17:47:50 UTC) #9
Zhiqiang Zhang (Slow)
https://codereview.chromium.org/2300083002/diff/1/content/public/browser/web_contents_observer.h File content/public/browser/web_contents_observer.h (right): https://codereview.chromium.org/2300083002/diff/1/content/public/browser/web_contents_observer.h#newcode11 content/public/browser/web_contents_observer.h:11: #include "base/optional.h" On 2016/09/01 17:47:49, mlamouri (slow) wrote: > ...
4 years, 3 months ago (2016-09-01 18:19:37 UTC) #12
Zhiqiang Zhang (Slow)
PTAL, addressed Mounir's comments. +dalecurtis to approve media-related changes +sievers to approve changes to web_contents_observer* ...
4 years, 3 months ago (2016-09-02 12:11:42 UTC) #14
Zhiqiang Zhang (Slow)
+jochen to approve changes to web_contents_observer*
4 years, 3 months ago (2016-09-05 12:37:58 UTC) #16
jochen (gone - plz use gerrit)
lgtm
4 years, 3 months ago (2016-09-06 15:56:21 UTC) #17
DaleCurtis
lgtm https://codereview.chromium.org/2300083002/diff/40001/content/renderer/media/android/renderer_media_session_manager.cc File content/renderer/media/android/renderer_media_session_manager.cc (right): https://codereview.chromium.org/2300083002/diff/40001/content/renderer/media/android/renderer_media_session_manager.cc#newcode74 content/renderer/media/android/renderer_media_session_manager.cc:74: (!metadata.has_value() || Is this what git cl format ...
4 years, 3 months ago (2016-09-06 19:26:07 UTC) #19
dcheng
https://codereview.chromium.org/2300083002/diff/40001/content/browser/android/web_contents_observer_proxy.h File content/browser/android/web_contents_observer_proxy.h (right): https://codereview.chromium.org/2300083002/diff/40001/content/browser/android/web_contents_observer_proxy.h#newcode78 content/browser/android/web_contents_observer_proxy.h:78: const base::Optional<MediaMetadata>& metadata) override; The documentation for base::Optional specifically ...
4 years, 3 months ago (2016-09-06 21:11:16 UTC) #21
mlamouri (slow - plz ping)
https://codereview.chromium.org/2300083002/diff/40001/content/browser/android/web_contents_observer_proxy.h File content/browser/android/web_contents_observer_proxy.h (right): https://codereview.chromium.org/2300083002/diff/40001/content/browser/android/web_contents_observer_proxy.h#newcode78 content/browser/android/web_contents_observer_proxy.h:78: const base::Optional<MediaMetadata>& metadata) override; On 2016/09/06 at 21:11:16, dcheng ...
4 years, 3 months ago (2016-09-07 08:55:53 UTC) #22
Zhiqiang Zhang (Slow)
PTAL for dcheng. https://codereview.chromium.org/2300083002/diff/40001/content/browser/android/web_contents_observer_proxy.h File content/browser/android/web_contents_observer_proxy.h (right): https://codereview.chromium.org/2300083002/diff/40001/content/browser/android/web_contents_observer_proxy.h#newcode78 content/browser/android/web_contents_observer_proxy.h:78: const base::Optional<MediaMetadata>& metadata) override; On 2016/09/07 ...
4 years, 3 months ago (2016-09-07 10:45:06 UTC) #23
dcheng
Btw, I was just looking at the plumbing again: how does this get into the ...
4 years, 3 months ago (2016-09-07 20:33:27 UTC) #24
Zhiqiang Zhang (Slow)
On 2016/09/07 20:33:27, dcheng wrote: > Btw, I was just looking at the plumbing again: ...
4 years, 3 months ago (2016-09-07 20:43:42 UTC) #25
dcheng
LGTM
4 years, 3 months ago (2016-09-07 22:47:55 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2300083002/60001
4 years, 3 months ago (2016-09-07 23:06:32 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: android_compile_dbg on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_compile_dbg/builds/125447)
4 years, 3 months ago (2016-09-07 23:39:44 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2300083002/80001
4 years, 3 months ago (2016-09-08 10:26:10 UTC) #34
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 3 months ago (2016-09-08 11:37:27 UTC) #35
commit-bot: I haz the power
4 years, 3 months ago (2016-09-08 11:39:40 UTC) #37
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/24ae1ae1f9d4e7f6668cfc554cfb8bface3650b9
Cr-Commit-Position: refs/heads/master@{#417255}

Powered by Google App Engine
This is Rietveld 408576698