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

Issue 2416853005: Fixing naming issues in MediaSession (Closed)

Created:
4 years, 2 months ago by Zhiqiang Zhang (Slow)
Modified:
4 years, 1 month ago
CC:
agrieve+watch_chromium.org, chromium-reviews, DaleCurtis, darin-cc_chromium.org, feature-media-reviews_chromium.org, jam
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fixing naming issues in MediaSession There are a handful of classes in media/session that have bad names which do not match what these class really are. This CL fixes this naming issue: - MediaSessionObserver -> MediaSessionPlayerObserver - MediaSessionDelegate -> AudioFocusDelegate (C++ & Android) Overall work description: https://docs.google.com/a/google.com/document/d/1duLlKQ6Y8ogC9VUbDvdTz8-Rn45Mrove0uD5j089Le8/edit?usp=sharing BUG=655781 Committed: https://crrev.com/a2147f8ab712703c6513078635fcacd595a88979 Cr-Commit-Position: refs/heads/master@{#426075}

Patch Set 1 #

Patch Set 2 : more #

Patch Set 3 : added missing files #

Patch Set 4 : Using the solution as offline discussed #

Patch Set 5 : owners #

Total comments: 3

Patch Set 6 : addressed nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+497 lines, -1164 lines) Patch
M content/browser/BUILD.gn View 1 2 3 4 3 chunks +6 lines, -6 lines 0 comments Download
M content/browser/android/browser_jni_registrar.cc View 2 chunks +2 lines, -2 lines 0 comments Download
A + content/browser/media/session/audio_focus_delegate.h View 2 chunks +8 lines, -8 lines 0 comments Download
A + content/browser/media/session/audio_focus_delegate_android.h View 1 2 chunks +10 lines, -10 lines 0 comments Download
A + content/browser/media/session/audio_focus_delegate_android.cc View 1 2 chunks +28 lines, -28 lines 0 comments Download
A + content/browser/media/session/audio_focus_delegate_android_browsertest.cc View 1 2 3 4 5 3 chunks +9 lines, -9 lines 0 comments Download
A + content/browser/media/session/audio_focus_delegate_default.cc View 1 4 chunks +16 lines, -17 lines 0 comments Download
A + content/browser/media/session/audio_focus_delegate_default_browsertest.cc View 1 2 3 4 5 3 chunks +7 lines, -7 lines 0 comments Download
M content/browser/media/session/audio_focus_manager_unittest.cc View 1 2 3 4 chunks +4 lines, -4 lines 0 comments Download
M content/browser/media/session/media_session.h View 1 2 3 7 chunks +12 lines, -12 lines 0 comments Download
M content/browser/media/session/media_session.cc View 1 2 3 10 chunks +14 lines, -15 lines 0 comments Download
M content/browser/media/session/media_session_browsertest.cc View 1 2 3 4 5 50 chunks +309 lines, -305 lines 0 comments Download
M content/browser/media/session/media_session_controller.h View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M content/browser/media/session/media_session_controllers_manager.cc View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
D content/browser/media/session/media_session_delegate.h View 1 chunk +0 lines, -30 lines 0 comments Download
D content/browser/media/session/media_session_delegate_android.h View 1 chunk +0 lines, -63 lines 0 comments Download
D content/browser/media/session/media_session_delegate_android.cc View 1 chunk +0 lines, -101 lines 0 comments Download
D content/browser/media/session/media_session_delegate_android_browsertest.cc View 1 chunk +0 lines, -70 lines 0 comments Download
D content/browser/media/session/media_session_delegate_default.cc View 1 chunk +0 lines, -66 lines 0 comments Download
D content/browser/media/session/media_session_delegate_default_browsertest.cc View 1 chunk +0 lines, -66 lines 0 comments Download
D content/browser/media/session/media_session_observer.h View 1 chunk +0 lines, -29 lines 0 comments Download
A + content/browser/media/session/media_session_player_observer.h View 1 2 3 2 chunks +6 lines, -6 lines 0 comments Download
D content/browser/media/session/mock_media_session_observer.h View 1 1 chunk +0 lines, -59 lines 0 comments Download
D content/browser/media/session/mock_media_session_observer.cc View 1 1 chunk +0 lines, -70 lines 0 comments Download
A + content/browser/media/session/mock_media_session_player_observer.h View 1 2 3 2 chunks +8 lines, -9 lines 0 comments Download
A + content/browser/media/session/mock_media_session_player_observer.cc View 1 2 3 4 chunks +15 lines, -13 lines 0 comments Download
M content/browser/media/session/pepper_player_delegate.h View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M content/public/android/BUILD.gn View 1 2 3 4 4 chunks +2 lines, -2 lines 0 comments Download
A + content/public/android/java/src/org/chromium/content/browser/AudioFocusDelegate.java View 1 2 3 3 chunks +28 lines, -28 lines 0 comments Download
D content/public/android/java/src/org/chromium/content/browser/MediaSessionDelegate.java View 1 chunk +0 lines, -115 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/OWNERS View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M content/test/BUILD.gn View 1 2 3 4 2 chunks +5 lines, -5 lines 0 comments Download

Messages

Total messages: 42 (26 generated)
Zhiqiang Zhang (Slow)
The initial renaming. Maybe there are some accidental style changes since I used `git cl ...
4 years, 2 months ago (2016-10-14 18:46:27 UTC) #4
whywhat
non-lgtm let's agree on the renaming first, using the bug you filed
4 years, 2 months ago (2016-10-14 23:51:25 UTC) #13
whywhat
On 2016/10/14 at 23:51:25, whywhat wrote: > non-lgtm > > let's agree on the renaming ...
4 years, 2 months ago (2016-10-14 23:52:04 UTC) #14
Zhiqiang Zhang (Slow)
PTAL +boliu for JNI changes +sky for RS content/test/BUILD.gn Now the naming is as we ...
4 years, 2 months ago (2016-10-18 13:24:14 UTC) #22
Zhiqiang Zhang (Slow)
4 years, 2 months ago (2016-10-18 13:24:41 UTC) #23
boliu
can you get Anton to approve first (so I don't have to look at the ...
4 years, 2 months ago (2016-10-18 15:54:41 UTC) #24
Zhiqiang Zhang (Slow)
On 2016/10/18 15:54:41, boliu wrote: > can you get Anton to approve first (so I ...
4 years, 2 months ago (2016-10-18 16:12:21 UTC) #25
sky
content/test/BUILD.gn LGTM
4 years, 2 months ago (2016-10-18 17:07:43 UTC) #26
whywhat
https://chromiumcodereview.appspot.com/2416853005/diff/80001/content/browser/media/session/audio_focus_delegate_android_browsertest.cc File content/browser/media/session/audio_focus_delegate_android_browsertest.cc (right): https://chromiumcodereview.appspot.com/2416853005/diff/80001/content/browser/media/session/audio_focus_delegate_android_browsertest.cc#newcode46 content/browser/media/session/audio_focus_delegate_android_browsertest.cc:46: media_session_player_observer->StartNewPlayer(); nit: you could use player_observer without losing much ...
4 years, 2 months ago (2016-10-18 18:11:45 UTC) #27
Zhiqiang Zhang (Slow)
https://chromiumcodereview.appspot.com/2416853005/diff/80001/content/browser/media/session/audio_focus_delegate_android_browsertest.cc File content/browser/media/session/audio_focus_delegate_android_browsertest.cc (right): https://chromiumcodereview.appspot.com/2416853005/diff/80001/content/browser/media/session/audio_focus_delegate_android_browsertest.cc#newcode46 content/browser/media/session/audio_focus_delegate_android_browsertest.cc:46: media_session_player_observer->StartNewPlayer(); On 2016/10/18 18:11:45, whywhat wrote: > nit: you ...
4 years, 2 months ago (2016-10-18 19:01:22 UTC) #28
Zhiqiang Zhang (Slow)
https://chromiumcodereview.appspot.com/2416853005/diff/80001/content/browser/media/session/audio_focus_delegate_android_browsertest.cc File content/browser/media/session/audio_focus_delegate_android_browsertest.cc (right): https://chromiumcodereview.appspot.com/2416853005/diff/80001/content/browser/media/session/audio_focus_delegate_android_browsertest.cc#newcode46 content/browser/media/session/audio_focus_delegate_android_browsertest.cc:46: media_session_player_observer->StartNewPlayer(); On 2016/10/18 19:01:22, Zhiqiang Zhang wrote: > On ...
4 years, 2 months ago (2016-10-18 20:06:08 UTC) #29
whywhat
lgtm sorry lgtm got lost when switching from non-working codereview.chromium.org to chromiumcodereview.appspot.com...
4 years, 2 months ago (2016-10-18 20:36:03 UTC) #30
boliu
lgtm
4 years, 2 months ago (2016-10-18 20:41:08 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/2416853005/100001
4 years, 2 months ago (2016-10-18 22:11:16 UTC) #38
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 2 months ago (2016-10-18 22:53:59 UTC) #40
commit-bot: I haz the power
4 years, 1 month ago (2016-10-21 13:04:17 UTC) #42
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/a2147f8ab712703c6513078635fcacd595a88979
Cr-Commit-Position: refs/heads/master@{#426075}

Powered by Google App Engine
This is Rietveld 408576698