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

Issue 1907673002: [Media Router] Ensure the same FeatureSwitch is used for lifetime of the (Closed)

Created:
4 years, 8 months ago by imcheng
Modified:
4 years, 8 months ago
Reviewers:
mark a. foltz
CC:
chromium-reviews, darin-cc_chromium.org, feature-media-reviews_chromium.org, jam, mcasas+watch+vc_chromium.org, media-router+watch_chromium.org, posciak+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Media Router] Ensure the same FeatureSwitch is used for lifetime of the browser. We noticed that with Cast Extension enabled, the component action toolbar logic will end up using the EnableMediaRouterWithCastExtension field trial during the call to MediaRouterEnabled(). If so, the Cast Extension will be unloaded. Code executed subsequently use EnableMediaRouter field trial during the call to MediaRouterEnabled(). This could be a problem for users with certain field trial group configurations and results in inconsistencies (e.g., has Cast button in toolbar, but opens error page when clicked due to WebUI not found). The decision is to no longer rely on the EMRWCE field trial. For one, the mechanism to switch on BrowserContext to return the correct field trial consistently require a complicated mechanism, and we will still end up with some corner cases that result in strange behavior. In addition, having both field trials make analyzing the data more difficult. BUG=605165 Committed: https://crrev.com/f735fb21eb9fdc1cade2b8a30217b8c5dc626b90 Cr-Commit-Position: refs/heads/master@{#389175}

Patch Set 1 : #

Total comments: 2

Patch Set 2 : Simplified experiments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+0 lines, -19 lines) Patch
M chrome/browser/media/router/media_router_feature.cc View 1 2 chunks +0 lines, -19 lines 0 comments Download

Messages

Total messages: 18 (7 generated)
imcheng
PTAL. This solution has its limitations, but it should fix the bug we've been seeing ...
4 years, 8 months ago (2016-04-20 21:45:13 UTC) #3
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1907673002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1907673002/20001
4 years, 8 months ago (2016-04-21 14:55:24 UTC) #5
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-21 16:13:19 UTC) #7
mark a. foltz
https://codereview.chromium.org/1907673002/diff/20001/chrome/browser/media/router/media_router_feature.cc File chrome/browser/media/router/media_router_feature.cc (right): https://codereview.chromium.org/1907673002/diff/20001/chrome/browser/media/router/media_router_feature.cc#newcode52 chrome/browser/media/router/media_router_feature.cc:52: static bool has_cast_extension = HasCastExtension(context); This needs to be ...
4 years, 8 months ago (2016-04-21 19:30:56 UTC) #8
imcheng
On 2016/04/21 19:30:56, mark a. foltz wrote: > https://codereview.chromium.org/1907673002/diff/20001/chrome/browser/media/router/media_router_feature.cc > File chrome/browser/media/router/media_router_feature.cc (right): > > ...
4 years, 8 months ago (2016-04-21 21:14:59 UTC) #9
imcheng
On 2016/04/21 21:14:59, imcheng wrote: > On 2016/04/21 19:30:56, mark a. foltz wrote: > > ...
4 years, 8 months ago (2016-04-21 21:25:07 UTC) #10
imcheng
I have updated the patch per the conversation yesterday. PTAL.
4 years, 8 months ago (2016-04-22 16:33:38 UTC) #12
mark a. foltz
lgtm
4 years, 8 months ago (2016-04-22 18:18:07 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1907673002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1907673002/40001
4 years, 8 months ago (2016-04-22 18:23:35 UTC) #15
commit-bot: I haz the power
Committed patchset #2 (id:40001)
4 years, 8 months ago (2016-04-22 18:30:39 UTC) #16
commit-bot: I haz the power
4 years, 8 months ago (2016-04-22 19:50:09 UTC) #18
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/f735fb21eb9fdc1cade2b8a30217b8c5dc626b90
Cr-Commit-Position: refs/heads/master@{#389175}

Powered by Google App Engine
This is Rietveld 408576698