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

Issue 2735493002: MediaRouter: Cache MediaRoutesObserver queries to prevent ext wake-ups (Closed)

Created:
3 years, 9 months ago by miu
Modified:
3 years, 9 months ago
Reviewers:
Wez
CC:
chromium-reviews, feature-media-reviews_chromium.org, qsr+mojo_chromium.org, media-router+watch_chromium.org, viettrungluu+watch_chromium.org, chfremer+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, mcasas+watch+vc_chromium.org, darin (slow to review)
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MediaRouter: Cache MediaRoutesObserver queries to prevent ext wake-ups Resolved a performance issue where the Media Router component extension was being woken-up each time a new tab was opened. The solution is to cache route list updates so that the registration of new observers does not force the extension to wake-up to report on something we can cache browser-side. (This is the same as what is already being done for the MediaSinksObservers.) BUG=621246 TEST=Ran chrome with --enable-logging=stderr --vmodule=media_router_mojo_impl=1 to confirm extension wake-ups do not happen when opening new tabs. Review-Url: https://codereview.chromium.org/2735493002 Cr-Commit-Position: refs/heads/master@{#454769} Committed: https://chromium.googlesource.com/chromium/src/+/34e86af9f3ebe792b7681053eca4c08b27eca52d

Patch Set 1 #

Total comments: 8

Patch Set 2 : nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+131 lines, -26 lines) Patch
M chrome/browser/media/router/mojo/media_router_mojo_impl.h View 1 4 chunks +14 lines, -6 lines 0 comments Download
M chrome/browser/media/router/mojo/media_router_mojo_impl.cc View 1 6 chunks +59 lines, -19 lines 0 comments Download
M chrome/browser/media/router/mojo/media_router_mojo_impl_unittest.cc View 3 chunks +58 lines, -1 line 0 comments Download

Messages

Total messages: 12 (6 generated)
miu
wez: PTAL.
3 years, 9 months ago (2017-03-04 01:53:56 UTC) #4
Wez
https://codereview.chromium.org/2735493002/diff/1/chrome/browser/media/router/mojo/media_router_mojo_impl.cc File chrome/browser/media/router/mojo/media_router_mojo_impl.cc (right): https://codereview.chromium.org/2735493002/diff/1/chrome/browser/media/router/mojo/media_router_mojo_impl.cc#newcode473 chrome/browser/media/router/mojo/media_router_mojo_impl.cc:473: bool new_query = false; nit: is_new_query https://codereview.chromium.org/2735493002/diff/1/chrome/browser/media/router/mojo/media_router_mojo_impl.cc#newcode506 chrome/browser/media/router/mojo/media_router_mojo_impl.cc:506: // ...
3 years, 9 months ago (2017-03-04 02:07:32 UTC) #5
miu
https://codereview.chromium.org/2735493002/diff/1/chrome/browser/media/router/mojo/media_router_mojo_impl.cc File chrome/browser/media/router/mojo/media_router_mojo_impl.cc (right): https://codereview.chromium.org/2735493002/diff/1/chrome/browser/media/router/mojo/media_router_mojo_impl.cc#newcode473 chrome/browser/media/router/mojo/media_router_mojo_impl.cc:473: bool new_query = false; On 2017/03/04 02:07:32, Wez wrote: ...
3 years, 9 months ago (2017-03-04 02:24:39 UTC) #6
Wez
lgtm
3 years, 9 months ago (2017-03-04 08:29:42 UTC) #8
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/2735493002/20001
3 years, 9 months ago (2017-03-04 08:29:46 UTC) #9
commit-bot: I haz the power
3 years, 9 months ago (2017-03-04 09:09:48 UTC) #12
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/34e86af9f3ebe792b7681053eca4...

Powered by Google App Engine
This is Rietveld 408576698