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

Unified Diff: extensions/browser/api/cast_channel/cast_channel_enum_util.cc

Issue 2942743002: [cast_channel] Clean up CastSocketImpl ctor parameters (Closed)
Patch Set: fix compile error Created 3 years, 6 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: extensions/browser/api/cast_channel/cast_channel_enum_util.cc
diff --git a/extensions/browser/api/cast_channel/cast_channel_enum_util.cc b/extensions/browser/api/cast_channel/cast_channel_enum_util.cc
index e3e7022798162ab6079f468fae66802167444695..10064aa00bd13c48d206a0e6c739e0907473a1f9 100644
--- a/extensions/browser/api/cast_channel/cast_channel_enum_util.cc
+++ b/extensions/browser/api/cast_channel/cast_channel_enum_util.cc
@@ -57,31 +57,6 @@ api::cast_channel::ChannelError ToChannelError(
return CHANNEL_ERROR_NONE;
}
-api::cast_channel::ChannelAuthType ToChannelAuthType(
- ::cast_channel::ChannelAuthType channel_auth) {
- switch (channel_auth) {
- case ::cast_channel::ChannelAuthType::NONE:
- return CHANNEL_AUTH_TYPE_NONE;
- case ::cast_channel::ChannelAuthType::SSL_VERIFIED:
- return CHANNEL_AUTH_TYPE_SSL_VERIFIED;
- }
- NOTREACHED() << "Unknown channel_auth "
- << ChannelAuthTypeToString(channel_auth);
- return CHANNEL_AUTH_TYPE_NONE;
-}
-
-::cast_channel::ChannelAuthType ToChannelAuthTypeInternal(
- api::cast_channel::ChannelAuthType channel_auth) {
- switch (channel_auth) {
- case CHANNEL_AUTH_TYPE_NONE:
- return ::cast_channel::ChannelAuthType::NONE;
- case CHANNEL_AUTH_TYPE_SSL_VERIFIED:
- return ::cast_channel::ChannelAuthType::SSL_VERIFIED;
- }
- NOTREACHED() << "Unknown channel_auth " << channel_auth;
- return ::cast_channel::ChannelAuthType::NONE;
-}
-
} // namespace cast_channel
} // namespace api
} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698