Merge branch 'google3' to roll forward to cl/340537221.

This commit is contained in:
hai007
2020-11-03 15:30:12 -08:00
7 changed files with 26 additions and 19 deletions
+4
View File
@@ -42,6 +42,10 @@ WebRtc::~WebRtc() {
Disconnect();
}
const std::string WebRtc::GetDefaultCountryCode() {
return medium_.GetDefaultCountryCode();
}
bool WebRtc::IsAvailable() { return medium_.IsValid(); }
bool WebRtc::IsAcceptingConnections() {
+4
View File
@@ -44,6 +44,10 @@ class WebRtc {
WebRtc();
~WebRtc();
// Gets the default two-letter country code associated with current locale.
// For example, en_US locale resolves to "US".
const std::string GetDefaultCountryCode();
// Returns if WebRtc is available as a medium for nearby to transport data.
// Runs on @MainThread.
bool IsAvailable();