Commit a7fd680e authored by Kyle Horimoto's avatar Kyle Horimoto Committed by Commit Bot

[CrOS Nearby] Allow chrome://nearby-internals to run without a flag

It previously was gated on the Nearby Share flag, but Nearby Connections
is now shared with Phone Hub. This CL allows the debug UI to be shown
regardless of whether Nearby Share is enabled.

Change-Id: Iee53dcc2d24597c12673c1e7dfd9ccae06c977c2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2523762
Commit-Queue: Kyle Horimoto <khorimoto@chromium.org>
Commit-Queue: James Vecore <vecore@google.com>
Auto-Submit: Kyle Horimoto <khorimoto@chromium.org>
Reviewed-by: default avatarJames Vecore <vecore@google.com>
Cr-Commit-Position: refs/heads/master@{#825157}
parent 64c46c8a
...@@ -773,10 +773,8 @@ WebUIFactoryFunction GetWebUIFactoryFunction(WebUI* web_ui, ...@@ -773,10 +773,8 @@ WebUIFactoryFunction GetWebUIFactoryFunction(WebUI* web_ui,
web_app::SystemAppType::CAMERA)) { web_app::SystemAppType::CAMERA)) {
return &NewWebUI<chromeos::CameraAppUI>; return &NewWebUI<chromeos::CameraAppUI>;
} }
if (base::FeatureList::IsEnabled(features::kNearbySharing)) { if (url.host_piece() == chrome::kChromeUINearbyInternalsHost)
if (url.host_piece() == chrome::kChromeUINearbyInternalsHost) return &NewWebUI<NearbyInternalsUI>;
return &NewWebUI<NearbyInternalsUI>;
}
if (arc::IsArcAllowedForProfile(profile)) { if (arc::IsArcAllowedForProfile(profile)) {
if (url.host_piece() == chrome::kChromeUIArcGraphicsTracingHost) { if (url.host_piece() == chrome::kChromeUIArcGraphicsTracingHost) {
return &NewWebUI<chromeos::ArcGraphicsTracingUI< return &NewWebUI<chromeos::ArcGraphicsTracingUI<
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment