New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 646171 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Closed: Oct 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Chrome , Mac
Pri: 3
Type: Bug

Blocked on:
issue 646170



Sign in to add a comment

MR Cloud features are disabled in Chromium builds

Project Member Reported by amp@chromium.org, Sep 12 2016

Issue description

MR code checks specifically for Chrome builds before allowing enabling of cloud features:
https://cs-staging.chromium.org/chromium/src/chrome/browser/ui/webui/media_router/media_router_webui_message_handler.cc?l=483

There is no need for this check as the flag itself isn't closed source etc.

As long as the MR component extension is loaded and the Chrome Identity service returning oauth tokens correctly the cloud services should work fine in either Chromium or Chrome.
 

Comment 1 by sko...@chromium.org, Sep 21 2016

Status: WontFix (was: Untriaged)
Not a priority for now; we can revisit once we've done more MRP open-sourcing.

Comment 2 by mfo...@chromium.org, Sep 22 2016

Status: Available (was: WontFix)
We'll never revisit if it's marked WontFix.  Marking P3.

Comment 3 by sko...@chromium.org, Sep 28 2016

Blockedon: 646170

Comment 4 by mfo...@chromium.org, Oct 25 2016

Status: Started (was: Available)

Comment 5 by mfo...@chromium.org, Oct 25 2016

apacible@ pointed out in code review:

"wrt ungating cloud services - should we check if kLoadMediaRouterComponentExtension is true if it's a chromium build? Otherwise, if the user is signed in and opens the dialog (with no devices) but is expecting cloud sinks, they may be confused.

I don't know actual numbers of chromium usage, but I remember in uni we had chromium preinstalled on our linux desktops and needed special admin permissions to install other software (i.e. Chrome). I would probably have run into the aforementioned case if I didn't know about the kLoadMediaRouterComponentExtension flag. :)"


Comment 6 by mfo...@chromium.org, Oct 25 2016

Cc: -mfo...@chromium.org
Owner: mfo...@chromium.org
The issue I see with checking the flag is that the flag could be disabled and the developer or user could have loaded an alternate extension.  However, they would never be able to use cloud screens provided by that extension.

If there's no component at all (i.e. nothing implementing MRPM) maybe we could message the user?


Could we surface an 'issue' if there's no component at all?

Comment 8 by mfo...@chromium.org, Oct 25 2016

Yup.  We do this already in media_router_ui.cc for e.g. timeouts.

https://cs.chromium.org/chromium/src/chrome/browser/ui/webui/media_router/media_router_ui.cc?rcl=0&l=634



Cool, SGTM.
Project Member

Comment 10 by bugdroid1@chromium.org, Oct 28 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/ac0030f5d07e66752b93695bc373bcb55ab26602

commit ac0030f5d07e66752b93695bc373bcb55ab26602
Author: mfoltz <mfoltz@chromium.org>
Date: Fri Oct 28 21:16:52 2016

[Media Router] Update Media Router flags post-launch.

- Remove --media-router flag as this functionality has shipped
  ( crbug.com/651255 )

- Remove lots of GOOGLE_CHROME_BUILD #ifdefs around cloud services
  ( crbug.com/646171 )

- Adds a --load-media-router-component-extension flag to control loading of the
  Media Router component.  This is default on in Chrome and default off in
  Chromium.  ( crbug.com/646170 )

BUG= 646170 , 646171 , 651255 

Review-Url: https://codereview.chromium.org/2451573003
Cr-Commit-Position: refs/heads/master@{#428493}

[modify] https://crrev.com/ac0030f5d07e66752b93695bc373bcb55ab26602/chrome/app/chrome_command_ids.h
[modify] https://crrev.com/ac0030f5d07e66752b93695bc373bcb55ab26602/chrome/app/generated_resources.grd
[modify] https://crrev.com/ac0030f5d07e66752b93695bc373bcb55ab26602/chrome/app/media_router_strings.grdp
[modify] https://crrev.com/ac0030f5d07e66752b93695bc373bcb55ab26602/chrome/browser/about_flags.cc
[modify] https://crrev.com/ac0030f5d07e66752b93695bc373bcb55ab26602/chrome/browser/extensions/api/declarative_content/declarative_content_apitest.cc
[modify] https://crrev.com/ac0030f5d07e66752b93695bc373bcb55ab26602/chrome/browser/extensions/extension_context_menu_model_unittest.cc
[modify] https://crrev.com/ac0030f5d07e66752b93695bc373bcb55ab26602/chrome/browser/extensions/external_component_loader.cc
[modify] https://crrev.com/ac0030f5d07e66752b93695bc373bcb55ab26602/chrome/browser/media/router/media_router_feature.cc
[modify] https://crrev.com/ac0030f5d07e66752b93695bc373bcb55ab26602/chrome/browser/profiles/profile.cc
[delete] https://crrev.com/f70deac4299d792a31b03bfe1dadc335e3a01a22/chrome/browser/ui/ash/system_tray_tray_cast_browsertest_chromeos.cc
[modify] https://crrev.com/ac0030f5d07e66752b93695bc373bcb55ab26602/chrome/browser/ui/location_bar/location_bar_browsertest.cc
[modify] https://crrev.com/ac0030f5d07e66752b93695bc373bcb55ab26602/chrome/browser/ui/toolbar/browser_actions_bar_browsertest.cc
[modify] https://crrev.com/ac0030f5d07e66752b93695bc373bcb55ab26602/chrome/browser/ui/toolbar/media_router_contextual_menu.cc
[modify] https://crrev.com/ac0030f5d07e66752b93695bc373bcb55ab26602/chrome/browser/ui/toolbar/media_router_contextual_menu.h
[modify] https://crrev.com/ac0030f5d07e66752b93695bc373bcb55ab26602/chrome/browser/ui/toolbar/media_router_contextual_menu_unittest.cc
[modify] https://crrev.com/ac0030f5d07e66752b93695bc373bcb55ab26602/chrome/browser/ui/toolbar/toolbar_actions_model_unittest.cc
[modify] https://crrev.com/ac0030f5d07e66752b93695bc373bcb55ab26602/chrome/browser/ui/views/location_bar/page_action_image_view_interactive_uitest.cc
[modify] https://crrev.com/ac0030f5d07e66752b93695bc373bcb55ab26602/chrome/browser/ui/webui/media_router/media_router_dialog_controller_impl_browsertest.cc
[modify] https://crrev.com/ac0030f5d07e66752b93695bc373bcb55ab26602/chrome/browser/ui/webui/media_router/media_router_localized_strings_provider.cc
[modify] https://crrev.com/ac0030f5d07e66752b93695bc373bcb55ab26602/chrome/browser/ui/webui/media_router/media_router_test.cc
[modify] https://crrev.com/ac0030f5d07e66752b93695bc373bcb55ab26602/chrome/browser/ui/webui/media_router/media_router_test.h
[modify] https://crrev.com/ac0030f5d07e66752b93695bc373bcb55ab26602/chrome/browser/ui/webui/media_router/media_router_webui_message_handler.cc
[modify] https://crrev.com/ac0030f5d07e66752b93695bc373bcb55ab26602/chrome/browser/ui/webui/media_router/media_router_webui_message_handler_unittest.cc
[modify] https://crrev.com/ac0030f5d07e66752b93695bc373bcb55ab26602/chrome/common/chrome_switches.cc
[modify] https://crrev.com/ac0030f5d07e66752b93695bc373bcb55ab26602/chrome/common/chrome_switches.h
[modify] https://crrev.com/ac0030f5d07e66752b93695bc373bcb55ab26602/chrome/common/pref_names.cc
[modify] https://crrev.com/ac0030f5d07e66752b93695bc373bcb55ab26602/chrome/common/pref_names.h
[modify] https://crrev.com/ac0030f5d07e66752b93695bc373bcb55ab26602/chrome/test/BUILD.gn
[modify] https://crrev.com/ac0030f5d07e66752b93695bc373bcb55ab26602/chrome/test/media_router/media_router_base_browsertest.cc
[modify] https://crrev.com/ac0030f5d07e66752b93695bc373bcb55ab26602/chrome/test/media_router/media_router_base_browsertest.h
[modify] https://crrev.com/ac0030f5d07e66752b93695bc373bcb55ab26602/extensions/common/feature_switch.cc
[modify] https://crrev.com/ac0030f5d07e66752b93695bc373bcb55ab26602/extensions/common/feature_switch.h
[modify] https://crrev.com/ac0030f5d07e66752b93695bc373bcb55ab26602/tools/metrics/histograms/histograms.xml

Status: Fixed (was: Started)

Sign in to add a comment