Commit 94c9cc11 authored by Erik Jensen's avatar Erik Jensen Committed by Commit Bot

remoting: Add IPC message to save new OAuth refresh token.

As part of the migration from Talk to FTL, we need to fetch new OAuth
tokens with additonal scopes. This fetching will happen in the network
process, which has no filesystem access. This new message will allow the
network process to inform the daemon process of the new token, so the
daemon process can update the on-disk config file accordingly.

Bug: 954427
Change-Id: I59d0498abe9d31c4789a95ff1371d700728eabca
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1625925Reviewed-by: default avatarRobert Sesek <rsesek@chromium.org>
Reviewed-by: default avatarJoe Downing <joedow@chromium.org>
Commit-Queue: Joe Downing <joedow@chromium.org>
Cr-Commit-Position: refs/heads/master@{#662485}
parent 5bb56988
...@@ -124,6 +124,11 @@ IPC_MESSAGE_CONTROL(ChromotingNetworkDaemonMsg_HostStarted, ...@@ -124,6 +124,11 @@ IPC_MESSAGE_CONTROL(ChromotingNetworkDaemonMsg_HostStarted,
IPC_MESSAGE_CONTROL(ChromotingNetworkDaemonMsg_HostShutdown) IPC_MESSAGE_CONTROL(ChromotingNetworkDaemonMsg_HostShutdown)
// Instructs the daemon process to update the config file, replacing the current
// OAuth refresh token with the one provided.
IPC_MESSAGE_CONTROL(ChromotingNetworkDaemonMsg_UpdateConfigRefreshToken,
std::string /* token */)
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
// Chromoting messages sent from the desktop to the daemon process. // Chromoting messages sent from the desktop to the daemon process.
......
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