TabSwitcherUI Functionality to mirroring on Cast Moderator, Second CL [chromium/src : main]

10 views
Skip to first unread message

Ahmed Moussa (Gerrit)

unread,
Nov 4, 2022, 7:51:45 PM11/4/22
to Takumi Fujimoto, cros-ed...@google.com, feature-me...@chromium.org, ipc-securi...@chromium.org, jasonrobe...@google.com, jophba...@chromium.org, mfoltz...@chromium.org

Attention is currently required from: Takumi Fujimoto.

Ahmed Moussa would like Takumi Fujimoto to review this change.

View Change

TabSwitcherUI Functionality to mirroring on Cast Moderator, Second CL

Allow, while mirroring/remoting tab on cast moderator, the ability to
switch the mirrored tab and to stop casting through a Tab Switcher UI.

This feature is available behind a flag parameter named `TabSwitchingUIForAccessCodeCast`. You can try it out by `--enable-features=TabSwitchingUIForAccessCodeCast`. It's disabled by default for now.

Second CL → mainly focus on updating data members, which keep track of
source tabs connected to different routes/sessions, with the new source tab that we switched to.

Third CL → will mainly focus on using the right text wording
for the Tab Switcher UI bar e.g. use `Casting` instead of `Sharing`.

Fourth and Final CL → will add metrics needed and remove the flag.

Bug: b/242618705
Change-Id: Ib3e9e4fe9875a027e9684d30c310f1ea53b394ba
---
M chrome/browser/media/cast_mirroring_performance_browsertest.cc
M chrome/browser/media/cast_mirroring_service_host.cc
M chrome/browser/media/cast_mirroring_service_host_browsertest.cc
M chrome/browser/media/router/providers/cast/cast_activity_manager.cc
M chrome/browser/media/router/providers/cast/cast_activity_manager.h
M chrome/browser/media/router/providers/cast/cast_activity_manager_unittest.cc
M chrome/browser/media/router/providers/cast/cast_session_tracker.cc
M chrome/browser/media/router/providers/cast/cast_session_tracker.h
M chrome/browser/media/router/providers/cast/cast_session_tracker_unittest.cc
M chrome/browser/media/router/providers/cast/mirroring_activity.cc
M chrome/browser/media/router/providers/cast/mirroring_activity.h
M chrome/browser/media/router/providers/cast/mirroring_activity_unittest.cc
M components/mirroring/mojom/mirroring_service.mojom
M components/mirroring/mojom/session_observer.mojom
M components/mirroring/service/mirroring_service.cc
M components/mirroring/service/mirroring_service.h
M components/mirroring/service/openscreen_session_host.cc
M components/mirroring/service/openscreen_session_host.h
M components/mirroring/service/openscreen_session_host_unittest.cc
M components/mirroring/service/session.cc
M components/mirroring/service/session.h
M components/mirroring/service/session_unittest.cc
22 files changed, 243 insertions(+), 8 deletions(-)


To view, visit change 3996083. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ib3e9e4fe9875a027e9684d30c310f1ea53b394ba
Gerrit-Change-Number: 3996083
Gerrit-PatchSet: 7
Gerrit-Owner: Ahmed Moussa <ahmed...@google.com>
Gerrit-Reviewer: Ahmed Moussa <ahmed...@google.com>
Gerrit-Reviewer: Takumi Fujimoto <tak...@chromium.org>
Gerrit-Attention: Takumi Fujimoto <tak...@chromium.org>
Gerrit-MessageType: newchange

Ahmed Moussa (Gerrit)

unread,
Nov 4, 2022, 7:53:52 PM11/4/22
to cros-ed...@google.com, feature-me...@chromium.org, ipc-securi...@chromium.org, jasonrobe...@google.com, jophba...@chromium.org, mfoltz...@chromium.org, Takumi Fujimoto, Chromium LUCI CQ, chromium...@chromium.org

Attention is currently required from: Takumi Fujimoto.

View Change

    To view, visit change 3996083. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Ib3e9e4fe9875a027e9684d30c310f1ea53b394ba
    Gerrit-Change-Number: 3996083
    Gerrit-PatchSet: 7
    Gerrit-Owner: Ahmed Moussa <ahmed...@google.com>
    Gerrit-Reviewer: Ahmed Moussa <ahmed...@google.com>
    Gerrit-Reviewer: Takumi Fujimoto <tak...@chromium.org>
    Gerrit-Attention: Takumi Fujimoto <tak...@chromium.org>
    Gerrit-Comment-Date: Fri, 04 Nov 2022 23:51:42 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: No
    Gerrit-MessageType: comment

    Takumi Fujimoto (Gerrit)

    unread,
    Nov 6, 2022, 9:46:55 PM11/6/22
    to Ahmed Moussa, cros-ed...@google.com, feature-me...@chromium.org, ipc-securi...@chromium.org, jasonrobe...@google.com, jophba...@chromium.org, mfoltz...@chromium.org, Chromium LUCI CQ, chromium...@chromium.org

    Attention is currently required from: Ahmed Moussa.

    View Change

    12 comments:

    • File chrome/browser/media/router/providers/cast/cast_activity_manager.h:

      • Patch Set #7, Line 329: bool disable_auto_converting_to_flinging_ = false;

        Nit: Maybe `auto_conversion_to_flinging_enabled_ = true`

        When a bool named "disable" is false it becomes a double negation, which is a bit harder to read than "enable = true"

    • File chrome/browser/media/router/providers/cast/cast_activity_manager.cc:

      • Patch Set #7, Line 648: TerminateSession(route_it->second, base::DoNothing());

        Might be good to comment on why we're terminating the existing session.

    • File chrome/browser/media/router/providers/cast/cast_activity_manager_unittest.cc:

      • Patch Set #7, Line 484: void UpdateRouteSourceTabInRoutesMap() {

        Can you put 4 and 1 in variables named something like old_frame_id and new_frame_id so that the test is easier to read?

      • Patch Set #7, Line 488: manager_->activities_.end());

        Optional nit: ASSERT_TRUE(base::ContainsKey(manager_->activities_, route_id));
        Similar on below lines

      • Patch Set #7, Line 504: ASSERT_EQ(manager_->routes_by_frame_.find(5),

        Nit: `ASSERT_EQ(4, manager_->routes_by_frame_.size());`

    • File chrome/browser/media/router/providers/cast/cast_session_tracker.cc:

    • File chrome/browser/media/router/providers/cast/mirroring_activity_unittest.cc:

    • File components/mirroring/mojom/session_observer.mojom:

      • Patch Set #7, Line 48: UpdateRouteSourceTab(int32 new_frame_tree_node_id);

        Nit: Maybe OnSourceTabChanged(). "Route" is not a term used in the mirroring service.

      • Patch Set #7, Line 48: new_frame_tree_node_id

        Nit: May be just `frame_tree_node_id`. I think it's more common not to put "new_" when changing to a new value. The old one can be "old_" if needed

    • File components/mirroring/service/openscreen_session_host_unittest.cc:

      • Patch Set #7, Line 459: EXPECT_CALL(*this, UpdateRouteSourceTab(-1)).Times(1);

        What does it mean for this to be called with -1? Could you add a comment?

    • File components/mirroring/service/session_unittest.cc:

      • Patch Set #7, Line 410: EXPECT_CALL(*this, UpdateRouteSourceTab(-1)).Times(1);

        What does it mean for this to be called with -1? Could you add a comment?

    To view, visit change 3996083. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Ib3e9e4fe9875a027e9684d30c310f1ea53b394ba
    Gerrit-Change-Number: 3996083
    Gerrit-PatchSet: 7
    Gerrit-Owner: Ahmed Moussa <ahmed...@google.com>
    Gerrit-Reviewer: Ahmed Moussa <ahmed...@google.com>
    Gerrit-Reviewer: Takumi Fujimoto <tak...@chromium.org>
    Gerrit-Attention: Ahmed Moussa <ahmed...@google.com>
    Gerrit-Comment-Date: Mon, 07 Nov 2022 02:44:17 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Gerrit-MessageType: comment

    Ahmed Moussa (Gerrit)

    unread,
    Nov 7, 2022, 6:39:44 PM11/7/22
    to cros-ed...@google.com, feature-me...@chromium.org, ipc-securi...@chromium.org, jasonrobe...@google.com, jophba...@chromium.org, mfoltz...@chromium.org

    Attention is currently required from: Ahmed Moussa.

    Ahmed Moussa uploaded patch set #10 to this change.

    View Change

    TabSwitcherUI Functionality to mirroring on Cast Moderator, Second CL

    Allow, while mirroring/remoting tab on cast moderator, the ability to
    switch the mirrored tab and to stop casting through a Tab Switcher UI.

    This feature is available behind a flag parameter named `AccessCodeCastTabSwitchingUI`. You can try it out by `--enable-features=AccessCodeCastTabSwitchingUI`. It's disabled by default for now.


    Second CL → mainly focus on updating data members, which keep track of
    source tabs connected to different routes/sessions, with the new source tab that we switched to.

    Third CL → will mainly focus on using the right text wording
    for the Tab Switcher UI bar e.g. use `Casting` instead of `Sharing`.

    Fourth and Final CL → will add metrics needed and remove the flag.

    Bug: b/242618705
    Change-Id: Ib3e9e4fe9875a027e9684d30c310f1ea53b394ba
    ---
    M chrome/browser/media/cast_mirroring_performance_browsertest.cc
    M chrome/browser/media/cast_mirroring_service_host_browsertest.cc
    M chrome/browser/media/router/providers/cast/cast_activity_manager.cc
    M chrome/browser/media/router/providers/cast/cast_activity_manager.h
    M chrome/browser/media/router/providers/cast/cast_activity_manager_unittest.cc
    M chrome/browser/media/router/providers/cast/cast_session_tracker.cc
    M chrome/browser/media/router/providers/cast/cast_session_tracker.h
    M chrome/browser/media/router/providers/cast/cast_session_tracker_unittest.cc
    M chrome/browser/media/router/providers/cast/mirroring_activity.cc
    M chrome/browser/media/router/providers/cast/mirroring_activity.h
    M chrome/browser/media/router/providers/cast/mirroring_activity_unittest.cc
    M components/mirroring/mojom/session_observer.mojom
    M components/mirroring/service/openscreen_session_host.cc
    M components/mirroring/service/openscreen_session_host_unittest.cc
    M components/mirroring/service/session.cc
    M components/mirroring/service/session_unittest.cc
    16 files changed, 220 insertions(+), 54 deletions(-)

    To view, visit change 3996083. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Ib3e9e4fe9875a027e9684d30c310f1ea53b394ba
    Gerrit-Change-Number: 3996083
    Gerrit-PatchSet: 10
    Gerrit-Owner: Ahmed Moussa <ahmed...@google.com>
    Gerrit-Reviewer: Ahmed Moussa <ahmed...@google.com>
    Gerrit-Reviewer: Takumi Fujimoto <tak...@chromium.org>
    Gerrit-Attention: Ahmed Moussa <ahmed...@google.com>
    Gerrit-MessageType: newpatchset

    Ahmed Moussa (Gerrit)

    unread,
    Nov 7, 2022, 6:46:08 PM11/7/22
    to cros-ed...@google.com, feature-me...@chromium.org, ipc-securi...@chromium.org, jasonrobe...@google.com, jophba...@chromium.org, mfoltz...@chromium.org, Takumi Fujimoto, Chromium LUCI CQ, chromium...@chromium.org

    Attention is currently required from: Takumi Fujimoto.

    Patch set 10:Commit-Queue +1

    View Change

    12 comments:

    • File chrome/browser/media/router/providers/cast/cast_activity_manager.h:

      • Nit: Maybe `auto_conversion_to_flinging_enabled_ = true` […]

        Done

    • File chrome/browser/media/router/providers/cast/cast_activity_manager.cc:

      • Patch Set #7, Line 648: TerminateSession(route_it->second, base::DoNothing());

        Might be good to comment on why we're terminating the existing session.

      • Done

    • File chrome/browser/media/router/providers/cast/cast_activity_manager_unittest.cc:

      • Can you put 4 and 1 in variables named something like old_frame_id and new_frame_id so that the test […]

        Done

      • Optional nit: ASSERT_TRUE(base::ContainsKey(manager_->activities_, route_id)); […]

        Done

      • Nit: `ASSERT_EQ(4, manager_->routes_by_frame_. […]

        Done

    • File chrome/browser/media/router/providers/cast/cast_session_tracker.cc:

      • Done

    • File chrome/browser/media/router/providers/cast/mirroring_activity_unittest.cc:

      • Nit: When adding new mocks please use MOCK_METHOD() rather than the old MOCK_METHOD0() etc. […]

        Done

      • Is -1 some kind of a special number? It's often used to mean "invalid". […]

        Done

    • File components/mirroring/mojom/session_observer.mojom:

      • Patch Set #7, Line 48: UpdateRouteSourceTab(int32 new_frame_tree_node_id);

        Nit: Maybe OnSourceTabChanged(). "Route" is not a term used in the mirroring service.

      • Done

    • File components/mirroring/service/openscreen_session_host_unittest.cc:

      • Patch Set #7, Line 459: EXPECT_CALL(*this, UpdateRouteSourceTab(-1)).Times(1);

        What does it mean for this to be called with -1? Could you add a comment?

      • Done

    • File components/mirroring/service/session_unittest.cc:

      • Patch Set #7, Line 410: EXPECT_CALL(*this, UpdateRouteSourceTab(-1)).Times(1);

        What does it mean for this to be called with -1? Could you add a comment?

      • Done

    To view, visit change 3996083. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Ib3e9e4fe9875a027e9684d30c310f1ea53b394ba
    Gerrit-Change-Number: 3996083
    Gerrit-PatchSet: 10
    Gerrit-Owner: Ahmed Moussa <ahmed...@google.com>
    Gerrit-Reviewer: Ahmed Moussa <ahmed...@google.com>
    Gerrit-Reviewer: Takumi Fujimoto <tak...@chromium.org>
    Gerrit-Attention: Takumi Fujimoto <tak...@chromium.org>
    Gerrit-Comment-Date: Mon, 07 Nov 2022 23:44:07 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    Comment-In-Reply-To: Takumi Fujimoto <tak...@chromium.org>
    Gerrit-MessageType: comment

    Takumi Fujimoto (Gerrit)

    unread,
    Nov 9, 2022, 3:19:53 AM11/9/22
    to Ahmed Moussa, cros-ed...@google.com, feature-me...@chromium.org, ipc-securi...@chromium.org, jasonrobe...@google.com, jophba...@chromium.org, mfoltz...@chromium.org, Chromium LUCI CQ, chromium...@chromium.org

    Attention is currently required from: Ahmed Moussa.

    Patch set 10:Code-Review +1

    View Change

    7 comments:

    To view, visit change 3996083. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Ib3e9e4fe9875a027e9684d30c310f1ea53b394ba
    Gerrit-Change-Number: 3996083
    Gerrit-PatchSet: 10
    Gerrit-Owner: Ahmed Moussa <ahmed...@google.com>
    Gerrit-Reviewer: Ahmed Moussa <ahmed...@google.com>
    Gerrit-Reviewer: Takumi Fujimoto <tak...@chromium.org>
    Gerrit-Attention: Ahmed Moussa <ahmed...@google.com>
    Gerrit-Comment-Date: Wed, 09 Nov 2022 08:17:33 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    Gerrit-MessageType: comment

    Ahmed Moussa (Gerrit)

    unread,
    Nov 21, 2022, 12:19:31 PM11/21/22
    to cros-ed...@google.com, feature-me...@chromium.org, ipc-securi...@chromium.org, jasonrobe...@google.com, jophba...@chromium.org, mfoltz...@chromium.org, Tricium, Takumi Fujimoto, Chromium LUCI CQ, chromium...@chromium.org

    Attention is currently required from: Takumi Fujimoto.

    View Change

    7 comments:

    • File chrome/browser/media/router/providers/cast/cast_activity_manager_unittest.cc:

      • Done

    • File chrome/browser/media/router/providers/cast/mirroring_activity_unittest.cc:

      • Comments on session_unittest. […]

        Done

    • File components/mirroring/service/openscreen_session_host_unittest.cc:

      • Same comments for this file as session_unittest. […]

        Done

    • File components/mirroring/service/session_unittest.cc:

      • Patch Set #10, Line 131: // Called when sends an outbound message.

        Nit: It seems to me that this comment isn't adding much value and can be removed

      • Done

      • Patch Set #10, Line 400: // A random int indicating the new tab source (frame_tree_node_id)

        Nit: Please end each comment with a period.

      • Done

      • Nit: It's not obvious to me what this variable name is referring to. […]

        Done

      • Nit: As Jordan mentioned in another CL, Times(1) can be omitted: […]

        Done

    To view, visit change 3996083. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Ib3e9e4fe9875a027e9684d30c310f1ea53b394ba
    Gerrit-Change-Number: 3996083
    Gerrit-PatchSet: 12
    Gerrit-Owner: Ahmed Moussa <ahmed...@google.com>
    Gerrit-Reviewer: Ahmed Moussa <ahmed...@google.com>
    Gerrit-Reviewer: Takumi Fujimoto <tak...@chromium.org>
    Gerrit-Attention: Takumi Fujimoto <tak...@chromium.org>
    Gerrit-Comment-Date: Mon, 21 Nov 2022 17:16:44 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No

    Ahmed Moussa (Gerrit)

    unread,
    Nov 21, 2022, 2:34:27 PM11/21/22
    to Mark Foltz, cros-ed...@google.com, feature-me...@chromium.org, ipc-securi...@chromium.org, jasonrobe...@google.com, jophba...@chromium.org, mfoltz...@chromium.org, Takumi Fujimoto

    Attention is currently required from: Mark Foltz, Takumi Fujimoto.

    Ahmed Moussa would like Mark Foltz to review this change.

    View Change

    TabSwitcherUI Functionality to mirroring on Cast Moderator, Second CL

    Allow, while mirroring/remoting tab on cast moderator, the ability to
    switch the mirrored tab and to stop casting through a Tab Switcher UI.

    This feature is available behind a flag parameter named `AccessCodeCastTabSwitchingUI`. You can try it out by `--enable-features=AccessCodeCastTabSwitchingUI`. It's disabled by default for now.

    Second CL → mainly focus on updating data members, which keep track of
    source tabs connected to different routes/sessions, with the new source tab that we switched to.

    Third CL → will mainly focus on using the right text wording
    for the Tab Switcher UI bar e.g. use `Casting` instead of `Sharing`.

    Fourth and Final CL → will add metrics needed and remove the flag.

    Bug: b/242618705
    Change-Id: Ib3e9e4fe9875a027e9684d30c310f1ea53b394ba
    ---
    M chrome/browser/media/cast_mirroring_performance_browsertest.cc
    M chrome/browser/media/cast_mirroring_service_host.cc
    M chrome/browser/media/cast_mirroring_service_host.h

    M chrome/browser/media/cast_mirroring_service_host_browsertest.cc
    M chrome/browser/media/router/providers/cast/cast_activity_manager.cc
    M chrome/browser/media/router/providers/cast/cast_activity_manager.h
    M chrome/browser/media/router/providers/cast/cast_activity_manager_unittest.cc
    M chrome/browser/media/router/providers/cast/cast_session_tracker.cc
    M chrome/browser/media/router/providers/cast/cast_session_tracker.h
    M chrome/browser/media/router/providers/cast/cast_session_tracker_unittest.cc
    M chrome/browser/media/router/providers/cast/mirroring_activity.cc
    M chrome/browser/media/router/providers/cast/mirroring_activity.h
    M chrome/browser/media/router/providers/cast/mirroring_activity_unittest.cc
    M components/mirroring/mojom/mirroring_service_host.mojom

    M components/mirroring/mojom/session_observer.mojom
    M components/mirroring/service/openscreen_session_host.cc
    M components/mirroring/service/openscreen_session_host_unittest.cc
    M components/mirroring/service/session.cc
    M components/mirroring/service/session_unittest.cc
    19 files changed, 281 insertions(+), 50 deletions(-)


    To view, visit change 3996083. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Ib3e9e4fe9875a027e9684d30c310f1ea53b394ba
    Gerrit-Change-Number: 3996083
    Gerrit-PatchSet: 12
    Gerrit-Owner: Ahmed Moussa <ahmed...@google.com>
    Gerrit-Reviewer: Ahmed Moussa <ahmed...@google.com>
    Gerrit-Reviewer: Mark Foltz <mfo...@chromium.org>
    Gerrit-Reviewer: Takumi Fujimoto <tak...@chromium.org>
    Gerrit-Attention: Takumi Fujimoto <tak...@chromium.org>
    Gerrit-Attention: Mark Foltz <mfo...@chromium.org>
    Gerrit-MessageType: newchange

    Ahmed Moussa (Gerrit)

    unread,
    Nov 21, 2022, 2:42:55 PM11/21/22
    to cros-ed...@google.com, feature-me...@chromium.org, ipc-securi...@chromium.org, jasonrobe...@google.com, jophba...@chromium.org, mfoltz...@chromium.org, Mark Foltz, Tricium, Takumi Fujimoto, Chromium LUCI CQ, chromium...@chromium.org

    Attention is currently required from: Mark Foltz, Takumi Fujimoto.

    View Change

    1 comment:

    To view, visit change 3996083. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Ib3e9e4fe9875a027e9684d30c310f1ea53b394ba
    Gerrit-Change-Number: 3996083
    Gerrit-PatchSet: 12
    Gerrit-Owner: Ahmed Moussa <ahmed...@google.com>
    Gerrit-Reviewer: Ahmed Moussa <ahmed...@google.com>
    Gerrit-Reviewer: Mark Foltz <mfo...@chromium.org>
    Gerrit-Reviewer: Takumi Fujimoto <tak...@chromium.org>
    Gerrit-Attention: Takumi Fujimoto <tak...@chromium.org>
    Gerrit-Attention: Mark Foltz <mfo...@chromium.org>
    Gerrit-Comment-Date: Mon, 21 Nov 2022 19:39:34 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Gerrit-MessageType: comment

    Takumi Fujimoto (Gerrit)

    unread,
    Nov 22, 2022, 4:57:16 AM11/22/22
    to Ahmed Moussa, cros-ed...@google.com, feature-me...@chromium.org, ipc-securi...@chromium.org, jasonrobe...@google.com, jophba...@chromium.org, mfoltz...@chromium.org, Mark Foltz, Tricium, Chromium LUCI CQ, chromium...@chromium.org

    Attention is currently required from: Ahmed Moussa, Mark Foltz.

    View Change

    6 comments:

    • File chrome/browser/media/cast_mirroring_service_host.h:

    • File chrome/browser/media/cast_mirroring_service_host.cc:

      • Patch Set #12, Line 219: if (!web_contents()) {

        Nit: When doing if-else, having the positive case (i.e. `if (web_contents())` here) come first makes it a bit easier to read

      • Patch Set #12, Line 220: std::move(get_tab_source_id_callback).Run(-1);

        I'd prefer that we use `absl::optional<int32_t>` and `absl::nullopt` here rather than a magic number like -1 to indicate an invalid tab ID. It's expressed as `int32?` in Mojo

    • File chrome/browser/media/router/providers/cast/cast_activity_manager_unittest.cc:

      • Patch Set #12, Line 485: ASSERT_TRUE(base::Contains(manager_->activities_, route_id));

        It'd be best if we were testing `manager_` through its public API rather than by accessing its internal members -- the latter is more brittle and what we care about at the end of the day is its external behavior rather than its internal state. For instance, here we can use `GetRoutes()` instead of `activities_`.

        Can we try to eliminate as much of the internal access as possible from this test?

    • File chrome/browser/media/router/providers/cast/mirroring_activity_unittest.cc:

      • Patch Set #12, Line 480: ASSERT_EQ(activity_->frame_tree_node_id_, kFrameTreeNodeId);

        Should these be ASSERT or EXPECT? ASSERT failure halts the test there, so it should be used when there's no more info to be gained from running the rest of the test.

      • Patch Set #12, Line 483: RunUntilIdle();

        We should call Mock::VerifyAndClearExpectations() here if we want EXPECT_CALL to be invoked before here and not after here.

    To view, visit change 3996083. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Ib3e9e4fe9875a027e9684d30c310f1ea53b394ba
    Gerrit-Change-Number: 3996083
    Gerrit-PatchSet: 12
    Gerrit-Owner: Ahmed Moussa <ahmed...@google.com>
    Gerrit-Reviewer: Ahmed Moussa <ahmed...@google.com>
    Gerrit-Reviewer: Mark Foltz <mfo...@chromium.org>
    Gerrit-Reviewer: Takumi Fujimoto <tak...@chromium.org>
    Gerrit-Attention: Ahmed Moussa <ahmed...@google.com>
    Gerrit-Attention: Mark Foltz <mfo...@chromium.org>
    Gerrit-Comment-Date: Tue, 22 Nov 2022 09:55:21 +0000

    Ahmed Moussa (Gerrit)

    unread,
    Nov 22, 2022, 1:12:25 PM11/22/22
    to cros-ed...@google.com, feature-me...@chromium.org, ipc-securi...@chromium.org, jasonrobe...@google.com, jophba...@chromium.org, mfoltz...@chromium.org, Mark Foltz, Tricium, Takumi Fujimoto, Chromium LUCI CQ, chromium...@chromium.org

    Attention is currently required from: Mark Foltz, Takumi Fujimoto.

    View Change

    6 comments:

    • File chrome/browser/media/cast_mirroring_service_host.h:

      • Nit: I think the callback type alias should get generated automatically (like this [1]) by the Mojo […]

        Done

    • File chrome/browser/media/cast_mirroring_service_host.cc:

      • Nit: When doing if-else, having the positive case (i.e. […]

        Done

    • File chrome/browser/media/router/providers/cast/cast_activity_manager_unittest.cc:

      • It'd be best if we were testing `manager_` through its public API rather than by accessing its inter […]

        Updated `activities_` -> `GetRoute()`.

        Regarding `routes_by_frame_`, I think we should keep it because
        1) Since `routes_by_frame_` has no relevance outside cast_activity_manager, there is no public function that returns it.
        2) `OnSourceTabChanged` function main purpose is to update `routes_by_frame_`. So, to me it makes since to check it directly.

        We could also create a private function to use instead of accessing `routes_by_frame_` directly e.g. `absl::optional<const MediaRoute::Id&> GetRouteIdFromFrameID(int frame_tree_node_id)`.

        Let me know what do you think?

    • File chrome/browser/media/router/providers/cast/mirroring_activity_unittest.cc:

      • Should these be ASSERT or EXPECT? ASSERT failure halts the test there, so it should be used when the […]

        Done

      • We should call Mock::VerifyAndClearExpectations() here if we want EXPECT_CALL to be invoked before h […]

        Done

    To view, visit change 3996083. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Ib3e9e4fe9875a027e9684d30c310f1ea53b394ba
    Gerrit-Change-Number: 3996083
    Gerrit-PatchSet: 13
    Gerrit-Owner: Ahmed Moussa <ahmed...@google.com>
    Gerrit-Reviewer: Ahmed Moussa <ahmed...@google.com>
    Gerrit-Reviewer: Mark Foltz <mfo...@chromium.org>
    Gerrit-Reviewer: Takumi Fujimoto <tak...@chromium.org>
    Gerrit-Attention: Takumi Fujimoto <tak...@chromium.org>
    Gerrit-Attention: Mark Foltz <mfo...@chromium.org>
    Gerrit-Comment-Date: Tue, 22 Nov 2022 18:10:11 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No

    Ahmed Moussa (Gerrit)

    unread,
    Nov 22, 2022, 1:26:53 PM11/22/22
    to cros-ed...@google.com, feature-me...@chromium.org, ipc-securi...@chromium.org, jasonrobe...@google.com, jophba...@chromium.org, mfoltz...@chromium.org

    Attention is currently required from: Mark Foltz, Takumi Fujimoto.

    Ahmed Moussa uploaded patch set #15 to this change.

    View Change

    TabSwitcherUI Functionality to mirroring on Cast Moderator, Second CL

    Allow, while mirroring/remoting tab on cast moderator, the ability to
    switch the mirrored tab and to stop casting through a Tab Switcher UI.

    This feature is available behind a flag parameter named `AccessCodeCastTabSwitchingUI`. You can try it out by `--enable-features=AccessCodeCastTabSwitchingUI`. It's disabled by default for now.

    Second CL → mainly focus on updating data members, which keep track of
    source tabs connected to different routes/sessions, with the new source tab that we switched to.

    Bug: b/242618705
    Change-Id: Ib3e9e4fe9875a027e9684d30c310f1ea53b394ba
    ---
    M chrome/browser/media/cast_mirroring_performance_browsertest.cc
    M chrome/browser/media/cast_mirroring_service_host.cc
    M chrome/browser/media/cast_mirroring_service_host.h
    M chrome/browser/media/cast_mirroring_service_host_browsertest.cc
    M chrome/browser/media/router/providers/cast/cast_activity_manager.cc
    M chrome/browser/media/router/providers/cast/cast_activity_manager.h
    M chrome/browser/media/router/providers/cast/cast_activity_manager_unittest.cc
    M chrome/browser/media/router/providers/cast/cast_session_tracker.cc
    M chrome/browser/media/router/providers/cast/cast_session_tracker.h
    M chrome/browser/media/router/providers/cast/cast_session_tracker_unittest.cc
    M chrome/browser/media/router/providers/cast/mirroring_activity.cc
    M chrome/browser/media/router/providers/cast/mirroring_activity.h
    M chrome/browser/media/router/providers/cast/mirroring_activity_unittest.cc
    M components/mirroring/mojom/mirroring_service_host.mojom
    M components/mirroring/mojom/session_observer.mojom
    M components/mirroring/service/openscreen_session_host.cc
    M components/mirroring/service/openscreen_session_host_unittest.cc
    M components/mirroring/service/session.cc
    M components/mirroring/service/session_unittest.cc
    19 files changed, 279 insertions(+), 50 deletions(-)

    To view, visit change 3996083. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Ib3e9e4fe9875a027e9684d30c310f1ea53b394ba
    Gerrit-Change-Number: 3996083
    Gerrit-PatchSet: 15
    Gerrit-Owner: Ahmed Moussa <ahmed...@google.com>
    Gerrit-Reviewer: Ahmed Moussa <ahmed...@google.com>
    Gerrit-Reviewer: Mark Foltz <mfo...@chromium.org>
    Gerrit-Reviewer: Takumi Fujimoto <tak...@chromium.org>
    Gerrit-Attention: Takumi Fujimoto <tak...@chromium.org>
    Gerrit-Attention: Mark Foltz <mfo...@chromium.org>
    Gerrit-MessageType: newpatchset

    Takumi Fujimoto (Gerrit)

    unread,
    Nov 30, 2022, 12:30:49 AM11/30/22
    to Ahmed Moussa, cros-ed...@google.com, feature-me...@chromium.org, ipc-securi...@chromium.org, jasonrobe...@google.com, jophba...@chromium.org, mfoltz...@chromium.org, Mark Foltz, Tricium, Chromium LUCI CQ, chromium...@chromium.org

    Attention is currently required from: Ahmed Moussa.

    View Change

    5 comments:

    • File chrome/browser/media/cast_mirroring_service_host.cc:

      • Patch Set #12, Line 220: std::move(get_tab_source_id_callback).Run(-1);

        Currently numeric types cannot be nullable in mojo [1]. […]

        I didn't know that, thanks for digging up the info.

        In that case I think it's cleaner to do what you were doing before, and just document in mirroring_service_host.mojom that -1 means no ID, and link to crbug.com/657632 for why we're using it. Sorry for the churn.

    • File chrome/browser/media/router/providers/cast/cast_activity_manager_unittest.cc:

      • Updated `activities_` -> `GetRoute()`. […]

        A more extreme way to put it is that if the internal state cannot be observed through the public API, then it doesn't matter what the internal state is. We only care about what's observable through the public API, so that's what we should be testing, although it often is easier to just directly observe the internal state.

        So let's test the class through the public API used by other classes, unless that is prohibitively difficult. The question would be, what externally observable change do we expect as a result of the internal change?

    • File chrome/browser/media/router/providers/cast/cast_activity_manager_unittest.cc:

      • Patch Set #16, Line 481: manager_->routes_by_frame_[old_frame_id] = "RouteID";

        Can we tell the mapping between frame IDs and routes via GetRoutes()?

      • Patch Set #16, Line 481: manager_->routes_by_frame_[old_frame_id] = "RouteID";

        Can this be achieved through the public interface e.g. LaunchSession()?

      • Patch Set #16, Line 487: EXPECT_EQ(2u, manager_->routes_by_frame_.size());

        manager_->GetRoutes().size()?

    To view, visit change 3996083. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Ib3e9e4fe9875a027e9684d30c310f1ea53b394ba
    Gerrit-Change-Number: 3996083
    Gerrit-PatchSet: 16
    Gerrit-Owner: Ahmed Moussa <ahmed...@google.com>
    Gerrit-Reviewer: Ahmed Moussa <ahmed...@google.com>
    Gerrit-Reviewer: Mark Foltz <mfo...@chromium.org>
    Gerrit-Reviewer: Takumi Fujimoto <tak...@chromium.org>
    Gerrit-Attention: Ahmed Moussa <ahmed...@google.com>
    Gerrit-Comment-Date: Wed, 30 Nov 2022 05:28:46 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Ahmed Moussa <ahmed...@google.com>

    Ahmed Moussa (Gerrit)

    unread,
    Dec 1, 2022, 7:08:47 PM12/1/22
    to cros-ed...@google.com, feature-me...@chromium.org, ipc-securi...@chromium.org, jasonrobe...@google.com, jophba...@chromium.org, mfoltz...@chromium.org, Mark Foltz, Tricium, Takumi Fujimoto, Chromium LUCI CQ, chromium...@chromium.org

    Attention is currently required from: Takumi Fujimoto.

    View Change

    5 comments:

    • File chrome/browser/media/cast_mirroring_service_host.cc:

      • I didn't know that, thanks for digging up the info. […]

        😄, no worries.
        Thanks Takumi.

    • File chrome/browser/media/router/providers/cast/cast_activity_manager_unittest.cc:

      • A more extreme way to put it is that if the internal state cannot be observed through the public API […]

        Thanks Takumi for the explanation.
        Updated the CL and removed use of internal state.
        The new patchset is using `ConvertMirrorToCast()` which is a private function. We can justify its use, as in fact it is the location where it notices the change made to `routes_by_frame_`. This function is only called when trying to `JoinSession`, which is the case mainly targeted by this CL.

    • File chrome/browser/media/router/providers/cast/cast_activity_manager_unittest.cc:

      • Patch Set #16, Line 481: manager_->routes_by_frame_[old_frame_id] = "RouteID";

        Can we tell the mapping between frame IDs and routes via GetRoutes()?

      • Done

      • Can this be achieved through the public interface e.g. […]

        Done

      • manager_->GetRoutes(). […]

        Done

    To view, visit change 3996083. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Ib3e9e4fe9875a027e9684d30c310f1ea53b394ba
    Gerrit-Change-Number: 3996083
    Gerrit-PatchSet: 17
    Gerrit-Owner: Ahmed Moussa <ahmed...@google.com>
    Gerrit-Reviewer: Ahmed Moussa <ahmed...@google.com>
    Gerrit-Reviewer: Mark Foltz <mfo...@chromium.org>
    Gerrit-Reviewer: Takumi Fujimoto <tak...@chromium.org>
    Gerrit-Attention: Takumi Fujimoto <tak...@chromium.org>
    Gerrit-Comment-Date: Fri, 02 Dec 2022 00:05:23 +0000

    Takumi Fujimoto (Gerrit)

    unread,
    Dec 1, 2022, 11:26:42 PM12/1/22
    to Ahmed Moussa, cros-ed...@google.com, feature-me...@chromium.org, ipc-securi...@chromium.org, jasonrobe...@google.com, jophba...@chromium.org, mfoltz...@chromium.org, Mark Foltz, Tricium, Chromium LUCI CQ, chromium...@chromium.org

    Attention is currently required from: Ahmed Moussa.

    View Change

    6 comments:

    • File chrome/browser/media/router/providers/cast/cast_activity_manager.h:

      • Patch Set #18, Line 288: absl::optional<MediaSinkInternal> ConvertMirrorToCast(int frame_tree_node_id);

        Nit: Can we make this `ConvertMirrorToCast(int frame_tree_node_id) const;` to indicate that it has no side effects?

      • Patch Set #18, Line 288: absl::optional<MediaSinkInternal> ConvertMirrorToCast(int frame_tree_node_id);

        Given we're not actually converting anything, `GetSink()` may be a more appropriate name here.

    • File chrome/browser/media/router/providers/cast/cast_activity_manager_unittest.cc:

      • Thanks Takumi for the explanation. […]

        Thanks, it looks a lot better, especially if we can rename ConvertMirrorToCast().

    • File chrome/browser/media/router/providers/cast/cast_activity_manager_unittest.cc:

      • Patch Set #18, Line 478:

        For me a comment like this would be helpful to understand what the method does.

        This method starts out with `route_id_to_move` associated with `frame_id_before`, and `route_id_to_terminate` with `frame_id_after`. We move `route_id_to_move` to `frame_id_after`, and that results in the termination of `route_id_to_terminate`.

      • Patch Set #18, Line 482: const MediaRoute::Id& route_id2) {

        Maybe: frame_id_before, frame_id_after, route_id_to_move, route_id_to_terminate

      • Patch Set #18, Line 489: ASSERT_TRUE(manager_->ConvertMirrorToCast(existing_frame_id));

        Nit: All the ASSERT_TRUE(ConvertMirrorToCast()) calls seem redundant given if it were to fail then it'd just crash on the next line anyways.

    To view, visit change 3996083. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Ib3e9e4fe9875a027e9684d30c310f1ea53b394ba
    Gerrit-Change-Number: 3996083
    Gerrit-PatchSet: 18
    Gerrit-Owner: Ahmed Moussa <ahmed...@google.com>
    Gerrit-Reviewer: Ahmed Moussa <ahmed...@google.com>
    Gerrit-Reviewer: Mark Foltz <mfo...@chromium.org>
    Gerrit-Reviewer: Takumi Fujimoto <tak...@chromium.org>
    Gerrit-Attention: Ahmed Moussa <ahmed...@google.com>
    Gerrit-Comment-Date: Fri, 02 Dec 2022 04:24:24 +0000

    Ahmed Moussa (Gerrit)

    unread,
    Dec 2, 2022, 2:11:54 PM12/2/22
    to cros-ed...@google.com, feature-me...@chromium.org, ipc-securi...@chromium.org, jasonrobe...@google.com, jophba...@chromium.org, mfoltz...@chromium.org, Mark Foltz, Tricium, Takumi Fujimoto, Chromium LUCI CQ, chromium...@chromium.org

    Attention is currently required from: Takumi Fujimoto.

    View Change

    5 comments:

    • File chrome/browser/media/router/providers/cast/cast_activity_manager.h:

      • Given we're not actually converting anything, `GetSink()` may be a more appropriate name here.

        Makes sense. Just to make it more descriptive, we could use that `GetSinkIfShouldConvertMirrorToCast()`.

      • Nit: Can we make this `ConvertMirrorToCast(int frame_tree_node_id) const;` to indicate that it has n […]

        Done

    • File chrome/browser/media/router/providers/cast/cast_activity_manager_unittest.cc:

      • For me a comment like this would be helpful to understand what the method does. […]

        Thanks Takumi, like your comment.

      • Patch Set #18, Line 482: const MediaRoute::Id& route_id2) {

        Maybe: frame_id_before, frame_id_after, route_id_to_move, route_id_to_terminate

      • Done

      • Nit: All the ASSERT_TRUE(ConvertMirrorToCast()) calls seem redundant given if it were to fail then i […]

        Done

    To view, visit change 3996083. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Ib3e9e4fe9875a027e9684d30c310f1ea53b394ba
    Gerrit-Change-Number: 3996083
    Gerrit-PatchSet: 20
    Gerrit-Owner: Ahmed Moussa <ahmed...@google.com>
    Gerrit-Reviewer: Ahmed Moussa <ahmed...@google.com>
    Gerrit-Reviewer: Mark Foltz <mfo...@chromium.org>
    Gerrit-Reviewer: Takumi Fujimoto <tak...@chromium.org>
    Gerrit-Attention: Takumi Fujimoto <tak...@chromium.org>
    Gerrit-Comment-Date: Fri, 02 Dec 2022 19:09:09 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No

    Mark Foltz (Gerrit)

    unread,
    Dec 2, 2022, 5:45:53 PM12/2/22
    to Ahmed Moussa, cros-ed...@google.com, feature-me...@chromium.org, ipc-securi...@chromium.org, jasonrobe...@google.com, jophba...@chromium.org, mfoltz...@chromium.org, Mark Foltz, Tricium, Takumi Fujimoto, Chromium LUCI CQ, chromium...@chromium.org

    Attention is currently required from: Ahmed Moussa, Takumi Fujimoto.

    View Change

    3 comments:

    • File chrome/browser/media/cast_mirroring_service_host.cc:

      • Patch Set #20, Line 251: std::move(get_tab_source_id_callback)

        The return value is obtained synchronously, so there is not a need to have a callback here.

    • File components/mirroring/mojom/mirroring_service_host.mojom:

      • Patch Set #20, Line 29: GetTabSourceId() => (int32 frame_tree_node_id);

        This is only called from the browser and is implemented in the browser, there is no reason for this to be an IPC. In fact this entire interface can be removed (as a separate cleanup).

    • File components/mirroring/mojom/session_observer.mojom:

      • Patch Set #20, Line 48: OnSourceTabChanged();

        I would prefer that this be named OnSourceChanged() as the service can't always assume that it's tab-to-tab. In the future it might be tab-to-flinging or tab-to-screen-mirroring.

    To view, visit change 3996083. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Ib3e9e4fe9875a027e9684d30c310f1ea53b394ba
    Gerrit-Change-Number: 3996083
    Gerrit-PatchSet: 20
    Gerrit-Owner: Ahmed Moussa <ahmed...@google.com>
    Gerrit-Reviewer: Ahmed Moussa <ahmed...@google.com>
    Gerrit-Reviewer: Mark Foltz <mfo...@chromium.org>
    Gerrit-Reviewer: Takumi Fujimoto <tak...@chromium.org>
    Gerrit-Attention: Ahmed Moussa <ahmed...@google.com>
    Gerrit-Attention: Takumi Fujimoto <tak...@chromium.org>
    Gerrit-Comment-Date: Fri, 02 Dec 2022 22:42:53 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Gerrit-MessageType: comment

    Mark Foltz (Gerrit)

    unread,
    Dec 2, 2022, 5:55:23 PM12/2/22
    to Ahmed Moussa, cros-ed...@google.com, feature-me...@chromium.org, ipc-securi...@chromium.org, jasonrobe...@google.com, jophba...@chromium.org, mfoltz...@chromium.org, Mark Foltz, Tricium, Takumi Fujimoto, Chromium LUCI CQ, chromium...@chromium.org

    Attention is currently required from: Ahmed Moussa, Takumi Fujimoto.

    View Change

    1 comment:

    • File chrome/browser/media/cast_mirroring_service_host.cc:

      • Patch Set #20, Line 252: .Run(web_contents()->GetPrimaryMainFrame()->GetFrameTreeNodeId());

        When a tab navigates, I am pretty sure the frame tree node id for the main frame can change. (Try navigating a tab being mirrored and logging the id to check.) Is the other code aware of that?

    To view, visit change 3996083. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Ib3e9e4fe9875a027e9684d30c310f1ea53b394ba
    Gerrit-Change-Number: 3996083
    Gerrit-PatchSet: 20
    Gerrit-Owner: Ahmed Moussa <ahmed...@google.com>
    Gerrit-Reviewer: Ahmed Moussa <ahmed...@google.com>
    Gerrit-Reviewer: Mark Foltz <mfo...@chromium.org>
    Gerrit-Reviewer: Takumi Fujimoto <tak...@chromium.org>
    Gerrit-Attention: Ahmed Moussa <ahmed...@google.com>
    Gerrit-Attention: Takumi Fujimoto <tak...@chromium.org>
    Gerrit-Comment-Date: Fri, 02 Dec 2022 22:52:21 +0000

    Ahmed Moussa (Gerrit)

    unread,
    Dec 2, 2022, 7:37:47 PM12/2/22
    to cros-ed...@google.com, feature-me...@chromium.org, ipc-securi...@chromium.org, jasonrobe...@google.com, jophba...@chromium.org, mfoltz...@chromium.org, Mark Foltz, Tricium, Takumi Fujimoto, Chromium LUCI CQ, chromium...@chromium.org

    Attention is currently required from: Mark Foltz, Takumi Fujimoto.

    View Change

    5 comments:

    • Patchset:

      • Patch Set #12:

        mfoltz@: PTAL (cast_mirroring_service_host, mirroring_activity) […]

        Done

    • File chrome/browser/media/cast_mirroring_service_host.cc:

      • The return value is obtained synchronously, so there is not a need to have a callback here.

      • This is only called from the browser and is implemented in the browser, there is no reason for this […]

        Good point, like your suggestion.
        Just one thing to keep in mind is that one of them is on UI thread and the other is on IO thread.

    • File components/mirroring/mojom/session_observer.mojom:

      • I would prefer that this be named OnSourceChanged() as the service can't always assume that it's tab […]

        Ack

    To view, visit change 3996083. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Ib3e9e4fe9875a027e9684d30c310f1ea53b394ba
    Gerrit-Change-Number: 3996083
    Gerrit-PatchSet: 20
    Gerrit-Owner: Ahmed Moussa <ahmed...@google.com>
    Gerrit-Reviewer: Ahmed Moussa <ahmed...@google.com>
    Gerrit-Reviewer: Mark Foltz <mfo...@chromium.org>
    Gerrit-Reviewer: Takumi Fujimoto <tak...@chromium.org>
    Gerrit-Attention: Takumi Fujimoto <tak...@chromium.org>
    Gerrit-Attention: Mark Foltz <mfo...@chromium.org>
    Gerrit-Comment-Date: Sat, 03 Dec 2022 00:35:19 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Ahmed Moussa <ahmed...@google.com>
    Comment-In-Reply-To: Mark Foltz <mfo...@chromium.org>
    Gerrit-MessageType: comment

    Ahmed Moussa (Gerrit)

    unread,
    Dec 2, 2022, 8:30:13 PM12/2/22
    to cros-ed...@google.com, feature-me...@chromium.org, ipc-securi...@chromium.org, jasonrobe...@google.com, jophba...@chromium.org, mfoltz...@chromium.org, Mark Foltz, Tricium, Takumi Fujimoto, Chromium LUCI CQ, chromium...@chromium.org

    Attention is currently required from: Mark Foltz, Takumi Fujimoto.

    View Change

    1 comment:

    • File chrome/browser/media/cast_mirroring_service_host.cc:

      • Patch Set #20, Line 252: .Run(web_contents()->GetPrimaryMainFrame()->GetFrameTreeNodeId());

        I tried it out, the frame tree node id didn't change. But still, I understand your concern. […]

        I think I misunderstood the issue mentioned in the earlier comment [1].
        IIUC the FrameTreeNodeID doesn't change, instead the frame itself is changing. So, I assume nothing need to be addressed.

        [1] https://bugs.chromium.org/p/chromium/issues/detail?id=1179502

    To view, visit change 3996083. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Ib3e9e4fe9875a027e9684d30c310f1ea53b394ba
    Gerrit-Change-Number: 3996083
    Gerrit-PatchSet: 20
    Gerrit-Owner: Ahmed Moussa <ahmed...@google.com>
    Gerrit-Reviewer: Ahmed Moussa <ahmed...@google.com>
    Gerrit-Reviewer: Mark Foltz <mfo...@chromium.org>
    Gerrit-Reviewer: Takumi Fujimoto <tak...@chromium.org>
    Gerrit-Attention: Takumi Fujimoto <tak...@chromium.org>
    Gerrit-Attention: Mark Foltz <mfo...@chromium.org>
    Gerrit-Comment-Date: Sat, 03 Dec 2022 01:27:41 +0000

    Takumi Fujimoto (Gerrit)

    unread,
    Dec 4, 2022, 8:22:40 PM12/4/22
    to Ahmed Moussa, cros-ed...@google.com, feature-me...@chromium.org, ipc-securi...@chromium.org, jasonrobe...@google.com, jophba...@chromium.org, mfoltz...@chromium.org, Mark Foltz, Tricium, Chromium LUCI CQ, chromium...@chromium.org

    Attention is currently required from: Ahmed Moussa, Mark Foltz.

    Patch set 20:Code-Review +1

    View Change

    4 comments:

    • Patchset:

      • Patch Set #20:

        LGTM once Mark's comments are addressed.
        You also need a security OWNERS review for the mojom files.

    • File chrome/browser/media/router/providers/cast/cast_activity_manager.h:

      • Patch Set #20, Line 288: absl::optional<MediaSinkInternal> GetSinkIfShouldConvertMirrorToCast(

        Nit: Maybe name it GetSinkForMirroringActivity(), although I don't feel strongly

    • File chrome/browser/media/router/providers/cast/cast_activity_manager_unittest.cc:

      • Patch Set #20, Line 493: .value()

        Nit: `*foo` is shorter than `foo.value()`, which may reduce the number of lines and make it a bit more readable here

    • File components/mirroring/mojom/session_observer.mojom:

      • Ack

        Was there a reason why this was Ack'd rather than Done'd?

    To view, visit change 3996083. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Ib3e9e4fe9875a027e9684d30c310f1ea53b394ba
    Gerrit-Change-Number: 3996083
    Gerrit-PatchSet: 20
    Gerrit-Owner: Ahmed Moussa <ahmed...@google.com>
    Gerrit-Reviewer: Ahmed Moussa <ahmed...@google.com>
    Gerrit-Reviewer: Mark Foltz <mfo...@chromium.org>
    Gerrit-Reviewer: Takumi Fujimoto <tak...@chromium.org>
    Gerrit-Attention: Ahmed Moussa <ahmed...@google.com>
    Gerrit-Attention: Mark Foltz <mfo...@chromium.org>
    Gerrit-Comment-Date: Mon, 05 Dec 2022 01:20:39 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes

    Ahmed Moussa (Gerrit)

    unread,
    Dec 4, 2022, 8:58:36 PM12/4/22
    to cros-ed...@google.com, feature-me...@chromium.org, ipc-securi...@chromium.org, jasonrobe...@google.com, jophba...@chromium.org, mfoltz...@chromium.org, Takumi Fujimoto, Mark Foltz, Tricium, Chromium LUCI CQ, chromium...@chromium.org

    Attention is currently required from: Mark Foltz.

    View Change

    4 comments:

    • Patchset:

      • Patch Set #20:

        LGTM once Mark's comments are addressed. […]

        Thanks Takumi

    • File chrome/browser/media/router/providers/cast/cast_activity_manager.h:

      • Patch Set #20, Line 288: absl::optional<MediaSinkInternal> GetSinkIfShouldConvertMirrorToCast(

        Nit: Maybe name it GetSinkForMirroringActivity(), although I don't feel strongly

      • Done

    • File chrome/browser/media/router/providers/cast/cast_activity_manager_unittest.cc:

      • Nit: `*foo` is shorter than `foo. […]

        Done

    • File components/mirroring/mojom/session_observer.mojom:

      • Was there a reason why this was Ack'd rather than Done'd?

        Done

    To view, visit change 3996083. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Ib3e9e4fe9875a027e9684d30c310f1ea53b394ba
    Gerrit-Change-Number: 3996083
    Gerrit-PatchSet: 21
    Gerrit-Owner: Ahmed Moussa <ahmed...@google.com>
    Gerrit-Reviewer: Ahmed Moussa <ahmed...@google.com>
    Gerrit-Reviewer: Mark Foltz <mfo...@chromium.org>
    Gerrit-Reviewer: Takumi Fujimoto <tak...@chromium.org>
    Gerrit-Attention: Mark Foltz <mfo...@chromium.org>
    Gerrit-Comment-Date: Mon, 05 Dec 2022 01:55:45 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Ahmed Moussa <ahmed...@google.com>
    Comment-In-Reply-To: Takumi Fujimoto <tak...@chromium.org>

    Mark Foltz (Gerrit)

    unread,
    Dec 5, 2022, 12:33:49 PM12/5/22
    to Ahmed Moussa, cros-ed...@google.com, feature-me...@chromium.org, ipc-securi...@chromium.org, jasonrobe...@google.com, jophba...@chromium.org, mfoltz...@chromium.org, Mark Foltz, Takumi Fujimoto, Tricium, Chromium LUCI CQ, chromium...@chromium.org

    Attention is currently required from: Ahmed Moussa.

    Patch set 21:Code-Review +1

    View Change

    3 comments:

    • File chrome/browser/media/cast_mirroring_service_host.cc:

      • Patch Set #20, Line 251: std::move(get_tab_source_id_callback)

        I believe using synchronous mojom calls is highly discouraged [1]. […]

        Ack

      • Good point, like your suggestion. […]

        Can you file a cleanup bug for this in Internals>Cast>Streaming and link it here as TODO(crbug.com/XXX)?

    To view, visit change 3996083. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Ib3e9e4fe9875a027e9684d30c310f1ea53b394ba
    Gerrit-Change-Number: 3996083
    Gerrit-PatchSet: 21
    Gerrit-Owner: Ahmed Moussa <ahmed...@google.com>
    Gerrit-Reviewer: Ahmed Moussa <ahmed...@google.com>
    Gerrit-Reviewer: Mark Foltz <mfo...@chromium.org>
    Gerrit-Reviewer: Takumi Fujimoto <tak...@chromium.org>
    Gerrit-Attention: Ahmed Moussa <ahmed...@google.com>
    Gerrit-Comment-Date: Mon, 05 Dec 2022 17:31:27 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    Comment-In-Reply-To: Ahmed Moussa <ahmed...@google.com>

    Ahmed Moussa (Gerrit)

    unread,
    Dec 5, 2022, 3:49:41 PM12/5/22
    to Chromium IPC Reviews, cros-ed...@google.com, feature-me...@chromium.org, ipc-securi...@chromium.org, jasonrobe...@google.com, jophba...@chromium.org, mfoltz...@chromium.org, Mark Foltz, Takumi Fujimoto

    Attention is currently required from: Chromium IPC Reviews.

    Ahmed Moussa would like Chromium IPC Reviews to review this change.

    View Change

    19 files changed, 325 insertions(+), 56 deletions(-)


    To view, visit change 3996083. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Ib3e9e4fe9875a027e9684d30c310f1ea53b394ba
    Gerrit-Change-Number: 3996083
    Gerrit-PatchSet: 21
    Gerrit-Owner: Ahmed Moussa <ahmed...@google.com>
    Gerrit-Reviewer: Ahmed Moussa <ahmed...@google.com>
    Gerrit-Reviewer: Chromium IPC Reviews <chrome-ip...@google.com>
    Gerrit-Reviewer: Mark Foltz <mfo...@chromium.org>
    Gerrit-Reviewer: Takumi Fujimoto <tak...@chromium.org>
    Gerrit-Attention: Chromium IPC Reviews <chrome-ip...@google.com>
    Gerrit-MessageType: newchange

    gwsq (Gerrit)

    unread,
    Dec 5, 2022, 3:53:04 PM12/5/22
    to Matthew Denton, cros-ed...@google.com, feature-me...@chromium.org, ipc-securi...@chromium.org, jasonrobe...@google.com, jophba...@chromium.org, mfoltz...@chromium.org, Ahmed Moussa, Chromium IPC Reviews, Mark Foltz, Takumi Fujimoto

    Attention is currently required from: Chromium IPC Reviews, Matthew Denton.

    gwsq would like Matthew Denton to review this change authored by Ahmed Moussa.

    Gerrit-Reviewer: Matthew Denton <mpde...@chromium.org>
    Gerrit-Reviewer: Takumi Fujimoto <tak...@chromium.org>
    Gerrit-Attention: Chromium IPC Reviews <chrome-ip...@google.com>
    Gerrit-Attention: Matthew Denton <mpde...@chromium.org>
    Gerrit-MessageType: newchange

    gwsq (Gerrit)

    unread,
    Dec 5, 2022, 3:53:07 PM12/5/22
    to cros-ed...@google.com, feature-me...@chromium.org, ipc-securi...@chromium.org, jasonrobe...@google.com, jophba...@chromium.org, mfoltz...@chromium.org, Chromium IPC Reviews, Ahmed Moussa, Matthew Denton, Mark Foltz, Takumi Fujimoto

    Attention is currently required from: Matthew Denton.

    Ahmed Moussa has uploaded this change for review.

    Gerrit-Reviewer: Mark Foltz <mfo...@chromium.org>
    Gerrit-Reviewer: Matthew Denton <mpde...@chromium.org>
    Gerrit-Reviewer: Takumi Fujimoto <tak...@chromium.org>
    Gerrit-CC: Chromium IPC Reviews <chrome-ip...@google.com>

    gwsq (Gerrit)

    unread,
    Dec 5, 2022, 3:53:19 PM12/5/22
    to Ahmed Moussa, cros-ed...@google.com, feature-me...@chromium.org, ipc-securi...@chromium.org, jasonrobe...@google.com, jophba...@chromium.org, mfoltz...@chromium.org, Chromium IPC Reviews, Matthew Denton, Mark Foltz, Takumi Fujimoto, Tricium, Chromium LUCI CQ, chromium...@chromium.org

    Attention is currently required from: Matthew Denton.

    From googleclient/chrome/chromium_gwsq/ipc/config.gwsq:
    📎 It looks like you’re making a possibly security-sensitive change! 📎 IPC security review isn’t a rubberstamp, so your friendly security reviewer will need a fair amount of context to review your CL effectively. Please review your CL description and code comments to make sure they provide context for someone unfamiliar with your project/area. Pay special attention to where data comes from and which processes it flows between (and their privilege levels). Feel free to point your security reviewer at design docs, bugs, or other links if you can’t reasonably make a self-contained CL description. (Also see https://cbea.ms/git-commit/).

    IPC reviewer(s): mpde...@chromium.org


    Reviewer source(s):
    mpde...@chromium.org is from context(googleclient/chrome/chromium_gwsq/ipc/config.gwsq)

    View Change

      To view, visit change 3996083. To unsubscribe, or for help writing mail filters, visit settings.

      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: Ib3e9e4fe9875a027e9684d30c310f1ea53b394ba
      Gerrit-Change-Number: 3996083
      Gerrit-PatchSet: 21
      Gerrit-Owner: Ahmed Moussa <ahmed...@google.com>
      Gerrit-Reviewer: Ahmed Moussa <ahmed...@google.com>
      Gerrit-Reviewer: Mark Foltz <mfo...@chromium.org>
      Gerrit-Reviewer: Matthew Denton <mpde...@chromium.org>
      Gerrit-Reviewer: Takumi Fujimoto <tak...@chromium.org>
      Gerrit-CC: Chromium IPC Reviews <chrome-ip...@google.com>
      Gerrit-CC: gwsq
      Gerrit-Attention: Matthew Denton <mpde...@chromium.org>
      Gerrit-Comment-Date: Mon, 05 Dec 2022 20:53:04 +0000

      Ahmed Moussa (Gerrit)

      unread,
      Dec 5, 2022, 4:08:53 PM12/5/22
      to cros-ed...@google.com, feature-me...@chromium.org, ipc-securi...@chromium.org, jasonrobe...@google.com, jophba...@chromium.org, mfoltz...@chromium.org, Chromium IPC Reviews, Matthew Denton, Mark Foltz, Takumi Fujimoto, Tricium, Chromium LUCI CQ, chromium...@chromium.org

      Attention is currently required from: Matthew Denton.

      View Change

      1 comment:

      • File components/mirroring/mojom/mirroring_service_host.mojom:

        • Can you file a cleanup bug for this in Internals>Cast>Streaming and link it here as TODO(crbug. […]

          Done.
          Thanks Mark.

      To view, visit change 3996083. To unsubscribe, or for help writing mail filters, visit settings.

      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: Ib3e9e4fe9875a027e9684d30c310f1ea53b394ba
      Gerrit-Change-Number: 3996083
      Gerrit-PatchSet: 22
      Gerrit-Owner: Ahmed Moussa <ahmed...@google.com>
      Gerrit-Reviewer: Ahmed Moussa <ahmed...@google.com>
      Gerrit-Reviewer: Mark Foltz <mfo...@chromium.org>
      Gerrit-Reviewer: Matthew Denton <mpde...@chromium.org>
      Gerrit-Reviewer: Takumi Fujimoto <tak...@chromium.org>
      Gerrit-CC: Chromium IPC Reviews <chrome-ip...@google.com>
      Gerrit-CC: gwsq
      Gerrit-Attention: Matthew Denton <mpde...@chromium.org>
      Gerrit-Comment-Date: Mon, 05 Dec 2022 21:06:30 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No

      Ahmed Moussa (Gerrit)

      unread,
      Dec 5, 2022, 4:14:59 PM12/5/22
      to cros-ed...@google.com, feature-me...@chromium.org, ipc-securi...@chromium.org, jasonrobe...@google.com, jophba...@chromium.org, mfoltz...@chromium.org, Chromium IPC Reviews, Matthew Denton, Mark Foltz, Takumi Fujimoto, Tricium, Chromium LUCI CQ, chromium...@chromium.org

      Attention is currently required from: Matthew Denton.

      View Change

      1 comment:

      To view, visit change 3996083. To unsubscribe, or for help writing mail filters, visit settings.

      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: Ib3e9e4fe9875a027e9684d30c310f1ea53b394ba
      Gerrit-Change-Number: 3996083
      Gerrit-PatchSet: 22
      Gerrit-Owner: Ahmed Moussa <ahmed...@google.com>
      Gerrit-Reviewer: Ahmed Moussa <ahmed...@google.com>
      Gerrit-Reviewer: Mark Foltz <mfo...@chromium.org>
      Gerrit-Reviewer: Matthew Denton <mpde...@chromium.org>
      Gerrit-Reviewer: Takumi Fujimoto <tak...@chromium.org>
      Gerrit-CC: Chromium IPC Reviews <chrome-ip...@google.com>
      Gerrit-CC: gwsq
      Gerrit-Attention: Matthew Denton <mpde...@chromium.org>
      Gerrit-Comment-Date: Mon, 05 Dec 2022 21:12:05 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Gerrit-MessageType: comment

      Matthew Denton (Gerrit)

      unread,
      Dec 6, 2022, 7:13:12 PM12/6/22
      to Ahmed Moussa, cros-ed...@google.com, feature-me...@chromium.org, ipc-securi...@chromium.org, jasonrobe...@google.com, jophba...@chromium.org, mfoltz...@chromium.org, Chromium IPC Reviews, Mark Foltz, Takumi Fujimoto, Tricium, Chromium LUCI CQ, chromium...@chromium.org

      Attention is currently required from: Ahmed Moussa.

      Patch set 22:Code-Review +1

      View Change

        To view, visit change 3996083. To unsubscribe, or for help writing mail filters, visit settings.

        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: Ib3e9e4fe9875a027e9684d30c310f1ea53b394ba
        Gerrit-Change-Number: 3996083
        Gerrit-PatchSet: 22
        Gerrit-Owner: Ahmed Moussa <ahmed...@google.com>
        Gerrit-Reviewer: Ahmed Moussa <ahmed...@google.com>
        Gerrit-Reviewer: Mark Foltz <mfo...@chromium.org>
        Gerrit-Reviewer: Matthew Denton <mpde...@chromium.org>
        Gerrit-Reviewer: Takumi Fujimoto <tak...@chromium.org>
        Gerrit-CC: Chromium IPC Reviews <chrome-ip...@google.com>
        Gerrit-CC: gwsq
        Gerrit-Attention: Ahmed Moussa <ahmed...@google.com>
        Gerrit-Comment-Date: Wed, 07 Dec 2022 00:10:33 +0000
        Gerrit-HasComments: No
        Gerrit-Has-Labels: Yes
        Gerrit-MessageType: comment

        Ahmed Moussa (Gerrit)

        unread,
        Dec 6, 2022, 7:13:50 PM12/6/22
        to cros-ed...@google.com, feature-me...@chromium.org, ipc-securi...@chromium.org, jasonrobe...@google.com, jophba...@chromium.org, mfoltz...@chromium.org, Matthew Denton, Chromium IPC Reviews, Mark Foltz, Takumi Fujimoto, Tricium, Chromium LUCI CQ, chromium...@chromium.org

        View Change

        1 comment:

        • Patchset:

          • Patch Set #22:

            @mpdenton: here is the design doc, if more info is needed […]

            Done

        To view, visit change 3996083. To unsubscribe, or for help writing mail filters, visit settings.

        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: Ib3e9e4fe9875a027e9684d30c310f1ea53b394ba
        Gerrit-Change-Number: 3996083
        Gerrit-PatchSet: 22
        Gerrit-Owner: Ahmed Moussa <ahmed...@google.com>
        Gerrit-Reviewer: Ahmed Moussa <ahmed...@google.com>
        Gerrit-Reviewer: Mark Foltz <mfo...@chromium.org>
        Gerrit-Reviewer: Matthew Denton <mpde...@chromium.org>
        Gerrit-Reviewer: Takumi Fujimoto <tak...@chromium.org>
        Gerrit-CC: Chromium IPC Reviews <chrome-ip...@google.com>
        Gerrit-CC: gwsq
        Gerrit-Comment-Date: Wed, 07 Dec 2022 00:11:27 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        Comment-In-Reply-To: Ahmed Moussa <ahmed...@google.com>
        Gerrit-MessageType: comment

        Ahmed Moussa (Gerrit)

        unread,
        Dec 6, 2022, 7:16:19 PM12/6/22
        to cros-ed...@google.com, feature-me...@chromium.org, ipc-securi...@chromium.org, jasonrobe...@google.com, jophba...@chromium.org, mfoltz...@chromium.org, Matthew Denton, Chromium IPC Reviews, Mark Foltz, Takumi Fujimoto, Tricium, Chromium LUCI CQ, chromium...@chromium.org

        Patch set 22:Commit-Queue +2

        View Change

          To view, visit change 3996083. To unsubscribe, or for help writing mail filters, visit settings.

          Gerrit-Project: chromium/src
          Gerrit-Branch: main
          Gerrit-Change-Id: Ib3e9e4fe9875a027e9684d30c310f1ea53b394ba
          Gerrit-Change-Number: 3996083
          Gerrit-PatchSet: 22
          Gerrit-Owner: Ahmed Moussa <ahmed...@google.com>
          Gerrit-Reviewer: Ahmed Moussa <ahmed...@google.com>
          Gerrit-Reviewer: Mark Foltz <mfo...@chromium.org>
          Gerrit-Reviewer: Matthew Denton <mpde...@chromium.org>
          Gerrit-Reviewer: Takumi Fujimoto <tak...@chromium.org>
          Gerrit-CC: Chromium IPC Reviews <chrome-ip...@google.com>
          Gerrit-CC: gwsq
          Gerrit-Comment-Date: Wed, 07 Dec 2022 00:13:35 +0000

          Chromium LUCI CQ (Gerrit)

          unread,
          Dec 6, 2022, 7:59:53 PM12/6/22
          to Ahmed Moussa, cros-ed...@google.com, feature-me...@chromium.org, ipc-securi...@chromium.org, jasonrobe...@google.com, jophba...@chromium.org, mfoltz...@chromium.org, Matthew Denton, Chromium IPC Reviews, Mark Foltz, Takumi Fujimoto, Tricium, chromium...@chromium.org

          Chromium LUCI CQ submitted this change.

          View Change

          Approvals: Ahmed Moussa: Commit Takumi Fujimoto: Looks good to me Matthew Denton: Looks good to me Mark Foltz: Looks good to me
          TabSwitcherUI Functionality to mirroring on Cast Moderator, Second CL

          Allow, while mirroring/remoting tab on cast moderator, the ability to
          switch the mirrored tab and to stop casting through a Tab Switcher UI.

          This feature is available behind a flag parameter named `AccessCodeCastTabSwitchingUI`. You can try it out by `--enable-features=AccessCodeCastTabSwitchingUI`. It's disabled by default for now.

          Second CL → mainly focus on updating data members, which keep track of
          source tabs connected to different routes/sessions, with the new source tab that we switched to.

          Bug: b/242618705
          Change-Id: Ib3e9e4fe9875a027e9684d30c310f1ea53b394ba
          Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3996083
          Reviewed-by: Takumi Fujimoto <tak...@chromium.org>
          Reviewed-by: Matthew Denton <mpde...@chromium.org>
          Commit-Queue: Ahmed Moussa <ahmed...@google.com>
          Reviewed-by: Mark Foltz <mfo...@chromium.org>
          Cr-Commit-Position: refs/heads/main@{#1080093}

          ---
          M chrome/browser/media/cast_mirroring_performance_browsertest.cc
          M chrome/browser/media/cast_mirroring_service_host.cc
          M chrome/browser/media/cast_mirroring_service_host.h
          M chrome/browser/media/cast_mirroring_service_host_browsertest.cc
          M chrome/browser/media/router/providers/cast/cast_activity_manager.cc
          M chrome/browser/media/router/providers/cast/cast_activity_manager.h
          M chrome/browser/media/router/providers/cast/cast_activity_manager_unittest.cc
          M chrome/browser/media/router/providers/cast/cast_session_tracker.cc
          M chrome/browser/media/router/providers/cast/cast_session_tracker.h
          M chrome/browser/media/router/providers/cast/cast_session_tracker_unittest.cc
          M chrome/browser/media/router/providers/cast/mirroring_activity.cc
          M chrome/browser/media/router/providers/cast/mirroring_activity.h
          M chrome/browser/media/router/providers/cast/mirroring_activity_unittest.cc
          M components/mirroring/mojom/mirroring_service_host.mojom
          M components/mirroring/mojom/session_observer.mojom
          M components/mirroring/service/openscreen_session_host.cc
          M components/mirroring/service/openscreen_session_host_unittest.cc
          M components/mirroring/service/session.cc
          M components/mirroring/service/session_unittest.cc
          19 files changed, 332 insertions(+), 56 deletions(-)


          To view, visit change 3996083. To unsubscribe, or for help writing mail filters, visit settings.

          Gerrit-Project: chromium/src
          Gerrit-Branch: main
          Gerrit-Change-Id: Ib3e9e4fe9875a027e9684d30c310f1ea53b394ba
          Gerrit-Change-Number: 3996083
          Gerrit-PatchSet: 23
          Gerrit-Owner: Ahmed Moussa <ahmed...@google.com>
          Gerrit-Reviewer: Ahmed Moussa <ahmed...@google.com>
          Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
          Gerrit-Reviewer: Mark Foltz <mfo...@chromium.org>
          Gerrit-Reviewer: Matthew Denton <mpde...@chromium.org>
          Gerrit-Reviewer: Takumi Fujimoto <tak...@chromium.org>
          Gerrit-CC: Chromium IPC Reviews <chrome-ip...@google.com>
          Gerrit-CC: gwsq
          Gerrit-MessageType: merged

          Johann Koenig (Gerrit)

          unread,
          Dec 6, 2022, 10:10:23 PM12/6/22
          to Ahmed Moussa, Chromium LUCI CQ, cros-ed...@google.com, feature-me...@chromium.org, ipc-securi...@chromium.org, jasonrobe...@google.com, jophba...@chromium.org, mfoltz...@chromium.org, Matthew Denton, Chromium IPC Reviews, Mark Foltz, Takumi Fujimoto, Tricium, chromium...@chromium.org

          Johann Koenig has created a revert of this change.

          View Change

          To view, visit change 3996083. To unsubscribe, or for help writing mail filters, visit settings.

          Gerrit-Project: chromium/src
          Gerrit-Branch: main
          Gerrit-Change-Id: Ib3e9e4fe9875a027e9684d30c310f1ea53b394ba
          Gerrit-Change-Number: 3996083
          Gerrit-PatchSet: 23
          Gerrit-Owner: Ahmed Moussa <ahmed...@google.com>
          Gerrit-Reviewer: Ahmed Moussa <ahmed...@google.com>
          Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
          Gerrit-Reviewer: Mark Foltz <mfo...@chromium.org>
          Gerrit-Reviewer: Matthew Denton <mpde...@chromium.org>
          Gerrit-Reviewer: Takumi Fujimoto <tak...@chromium.org>
          Gerrit-CC: Chromium IPC Reviews <chrome-ip...@google.com>
          Gerrit-CC: gwsq
          Gerrit-MessageType: revert
          Reply all
          Reply to author
          Forward
          0 new messages