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

Unified Diff: remoting/client/chromoting_client.cc

Issue 1806963002: Reduce APK size by disabling WebRTC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reviewer's feedback Created 4 years, 9 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
« no previous file with comments | « remoting/client/BUILD.gn ('k') | remoting/client/jni/chromoting_jni_instance.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/chromoting_client.cc
diff --git a/remoting/client/chromoting_client.cc b/remoting/client/chromoting_client.cc
index 1f7165ab5db91f8a8a5b2f59b467e9bf7f02e8c3..3eb1dd8a0fc351ded2e4ffbd0b13d3816725f147 100644
--- a/remoting/client/chromoting_client.cc
+++ b/remoting/client/chromoting_client.cc
@@ -72,11 +72,11 @@ void ChromotingClient::Start(
if (!connection_) {
if (protocol_config_->webrtc_supported()) {
DCHECK(!protocol_config_->ice_supported());
-#if defined(OS_NACL)
- LOG(FATAL) << "WebRTC is not supported in webapp.";
-#else // defined(OS_NACL)
+#if !defined(ENABLE_WEBRTC_REMOTING_CLIENT)
+ LOG(FATAL) << "WebRTC is not supported.";
+#else
connection_.reset(new protocol::WebrtcConnectionToHost());
-#endif // !defined(OS_NACL)
+#endif
} else {
DCHECK(protocol_config_->ice_supported());
connection_.reset(new protocol::IceConnectionToHost());
« no previous file with comments | « remoting/client/BUILD.gn ('k') | remoting/client/jni/chromoting_jni_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698