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

Issue 1648713004: [Media Router] Fix regression with icon not turning blue after casting. (Closed)

Created:
4 years, 10 months ago by imcheng
Modified:
4 years, 10 months ago
Reviewers:
Peter Kasting
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Media Router] Fix regression with icon not turning blue after casting. Previously MR relies on the behavior of route response returning a local displayable route on success. This is no longer the case, thus the logic to turn the toolbar icon blue is no longer getting triggered. The fix is to have the toolbar observe route list directly for local displayable routes. Route queries have a much lower overhead than before. In a separate patch we will clean up the now obsolete LocalMediaRoutesObserver API from MR and MR extension. BUG=582278 Committed: https://crrev.com/7f297c082c6be8d8495c5b4fe22069e93ed92a73 Cr-Commit-Position: refs/heads/master@{#372750}

Patch Set 1 #

Patch Set 2 : Fix tests #

Total comments: 8

Patch Set 3 : Addressed pkasting@'s comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -25 lines) Patch
M chrome/browser/ui/toolbar/media_router_action.h View 3 chunks +6 lines, -4 lines 0 comments Download
M chrome/browser/ui/toolbar/media_router_action.cc View 1 3 chunks +19 lines, -14 lines 0 comments Download
M chrome/browser/ui/toolbar/media_router_action_unittest.cc View 1 2 8 chunks +41 lines, -7 lines 0 comments Download

Messages

Total messages: 11 (5 generated)
imcheng
pkasting@, PTAL thanks!
4 years, 10 months ago (2016-01-29 00:33:05 UTC) #2
Peter Kasting
LGTM https://codereview.chromium.org/1648713004/diff/20001/chrome/browser/ui/toolbar/media_router_action.cc File chrome/browser/ui/toolbar/media_router_action.cc (right): https://codereview.chromium.org/1648713004/diff/20001/chrome/browser/ui/toolbar/media_router_action.cc#newcode170 chrome/browser/ui/toolbar/media_router_action.cc:170: std::find_if(routes.begin(), routes.end(), Nit: Prefer std::any_of() to (std::find_if() != ...
4 years, 10 months ago (2016-01-30 00:52:19 UTC) #3
imcheng
https://codereview.chromium.org/1648713004/diff/20001/chrome/browser/ui/toolbar/media_router_action.cc File chrome/browser/ui/toolbar/media_router_action.cc (right): https://codereview.chromium.org/1648713004/diff/20001/chrome/browser/ui/toolbar/media_router_action.cc#newcode170 chrome/browser/ui/toolbar/media_router_action.cc:170: std::find_if(routes.begin(), routes.end(), On 2016/01/30 00:52:19, Peter Kasting wrote: > ...
4 years, 10 months ago (2016-02-01 18:48:07 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1648713004/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1648713004/60001
4 years, 10 months ago (2016-02-01 20:36:37 UTC) #8
commit-bot: I haz the power
Committed patchset #3 (id:60001)
4 years, 10 months ago (2016-02-01 20:44:30 UTC) #9
commit-bot: I haz the power
4 years, 10 months ago (2016-02-01 20:45:23 UTC) #11
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/7f297c082c6be8d8495c5b4fe22069e93ed92a73
Cr-Commit-Position: refs/heads/master@{#372750}

Powered by Google App Engine
This is Rietveld 408576698