-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[remoting][linux host][open url] Update host for the new UX
This CL changes some host code to make the new open URL UX work. Basically: 1. Introduce a new url-forwarder-config data channel for querying and configuring the URL forwarder, and the corresponding UrlForwarderConfigMessageHandler for handling it. 2. Replace ScopedUrlForwarder with a UrlForwarderConfigurator singleton. 3. Remove default browser restoring logic from the daemon script and the RemoteOpenUrl, since we don't do auto-restoring any more. 4. Rename setup_url_forwarder.py to configure_url_forwarder.py so that we don't need to strangely call "setup-url-forwarder --setup". Bug: b:183135000 Change-Id: I26c77bbdf67d95608532e250656e176796df77eb Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2946788 Commit-Queue: Yuwei Huang <yuweih@chromium.org> Reviewed-by: Joe Downing <joedow@chromium.org> Cr-Commit-Position: refs/heads/master@{#892728}
- Loading branch information
Showing
21 changed files
with
382 additions
and
190 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// Copyright 2021 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
#include "remoting/host/url_forwarder_configurator.h" | ||
|
||
#include "base/macros.h" | ||
#include "build/build_config.h" | ||
|
||
namespace remoting { | ||
|
||
UrlForwarderConfigurator::UrlForwarderConfigurator() = default; | ||
|
||
UrlForwarderConfigurator::~UrlForwarderConfigurator() = default; | ||
|
||
#if !defined(OS_LINUX) | ||
|
||
// static | ||
UrlForwarderConfigurator* UrlForwarderConfigurator::GetInstance() { | ||
// Unsupported platforms. | ||
NOTREACHED(); | ||
return nullptr; | ||
} | ||
|
||
#endif // !defined(OS_LINUX) | ||
|
||
} // namespace remoting |
Oops, something went wrong.