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

Issue 2855473004: [Media Router] Sync state when MR extension is (re)connected to MR. (Closed)

Created:
3 years, 7 months ago by imcheng
Modified:
3 years, 7 months ago
Reviewers:
mark a. foltz
CC:
Aaron Boodman, abarth-chromium, chfremer+watch_chromium.org, chromium-reviews, darin (slow to review), feature-media-reviews_chromium.org, media-router+watch_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[Media Router] Sync state when MR extension is (re)connected to MR. The extension might have become out of sync with MediaRouter due to one of few reasons: (1) The extension crashed and lost unpersisted changes. (2) The extension was updated; temporary data is cleared. (3) The extension has an unforseen bug which causes temporary data to be persisted incorrectly on suspension. The number of calls made for the state sync should be relatively small (< 10), and quite inexpensive since the extension is already up. Note that the calls must be (and are) idempotent; the extension will no-op if the query / observer being registered already exists. Note that the existing mDNS activation call is also considered part of state sync. BUG=717325 Review-Url: https://codereview.chromium.org/2855473004 Cr-Commit-Position: refs/heads/master@{#469067} Committed: https://chromium.googlesource.com/chromium/src/+/adb75ff0ecd96123cfeab63e9ab2bfc368e29f05

Patch Set 1 #

Total comments: 8

Patch Set 2 : Addressed Mark's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+118 lines, -20 lines) Patch
M chrome/browser/media/router/mojo/media_router_mojo_impl.h View 1 3 chunks +13 lines, -3 lines 0 comments Download
M chrome/browser/media/router/mojo/media_router_mojo_impl.cc View 1 5 chunks +39 lines, -15 lines 0 comments Download
M chrome/browser/media/router/mojo/media_router_mojo_impl_unittest.cc View 1 5 chunks +66 lines, -2 lines 0 comments Download

Messages

Total messages: 20 (15 generated)
imcheng
Mark: PTAL thanks!
3 years, 7 months ago (2017-05-02 00:29:04 UTC) #2
mark a. foltz
LGTM Nice change, a couple of bikeshed comments on naming. https://codereview.chromium.org/2855473004/diff/20001/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/2855473004/diff/20001/chrome/browser/media/router/mojo/media_router_mojo_impl.cc#newcode996 ...
3 years, 7 months ago (2017-05-03 17:37:09 UTC) #12
imcheng
https://codereview.chromium.org/2855473004/diff/20001/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/2855473004/diff/20001/chrome/browser/media/router/mojo/media_router_mojo_impl.cc#newcode996 chrome/browser/media/router/mojo/media_router_mojo_impl.cc:996: DoEnsureMdnsDiscoveryEnabled(); On 2017/05/03 17:37:08, mark a. foltz wrote: > ...
3 years, 7 months ago (2017-05-03 18:22:42 UTC) #13
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/2855473004/40001
3 years, 7 months ago (2017-05-03 18:24:28 UTC) #16
commit-bot: I haz the power
3 years, 7 months ago (2017-05-03 19:21:50 UTC) #20
Message was sent while issue was closed.
Committed patchset #2 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/adb75ff0ecd96123cfeab63e9ab2...

Powered by Google App Engine
This is Rietveld 408576698