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

Unified Diff: remoting/protocol/session_config.cc

Issue 13932020: Set the initial resolution of an RDP session to the client screen resolution if it is available. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: CR feedback #2 Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: remoting/protocol/session_config.cc
diff --git a/remoting/protocol/session_config.cc b/remoting/protocol/session_config.cc
index 1f05a83182bf91b7ce86337307b5191a9ff28c4a..4b0a20c15531c557710404801ff8d61afdcf0c46 100644
--- a/remoting/protocol/session_config.cc
+++ b/remoting/protocol/session_config.cc
@@ -11,6 +11,9 @@ namespace protocol {
const int kDefaultStreamVersion = 2;
+// The control channel version that supports the "capabilities" message.
+const int kCapabilitiesControlStreamVersion = 3;
+
ChannelConfig ChannelConfig::None() {
return ChannelConfig();
}
@@ -171,6 +174,10 @@ scoped_ptr<CandidateSessionConfig> CandidateSessionConfig::CreateDefault() {
// Control channel.
result->mutable_control_configs()->push_back(
ChannelConfig(ChannelConfig::TRANSPORT_MUX_STREAM,
+ kCapabilitiesControlStreamVersion,
+ ChannelConfig::CODEC_UNDEFINED));
+ result->mutable_control_configs()->push_back(
+ ChannelConfig(ChannelConfig::TRANSPORT_MUX_STREAM,
kDefaultStreamVersion,
ChannelConfig::CODEC_UNDEFINED));
result->mutable_control_configs()->push_back(

Powered by Google App Engine
This is Rietveld 408576698