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

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

Issue 2688463003: [chrome.cast.channel] Remove event logging. (Closed)
Patch Set: Remove errors object when socket is closed Created 3 years, 10 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/logger_util.cc
diff --git a/extensions/browser/api/cast_channel/logger_util.cc b/extensions/browser/api/cast_channel/logger_util.cc
deleted file mode 100644
index 35e2c107266c3771fb249d106b8410bf4071c97e..0000000000000000000000000000000000000000
--- a/extensions/browser/api/cast_channel/logger_util.cc
+++ /dev/null
@@ -1,67 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "extensions/browser/api/cast_channel/logger_util.h"
-#include "extensions/common/api/cast_channel/logging.pb.h"
-#include "net/base/net_errors.h"
-
-namespace extensions {
-namespace api {
-namespace cast_channel {
-LastErrors::LastErrors()
- : event_type(proto::EVENT_TYPE_UNKNOWN),
- challenge_reply_error_type(proto::CHALLENGE_REPLY_ERROR_NONE),
- net_return_value(net::OK) {}
-
-LastErrors::~LastErrors() {
-}
-
-proto::ErrorState ErrorStateToProto(ChannelError state) {
- switch (state) {
- case CHANNEL_ERROR_NONE:
- return proto::CHANNEL_ERROR_NONE;
- case CHANNEL_ERROR_CHANNEL_NOT_OPEN:
- return proto::CHANNEL_ERROR_CHANNEL_NOT_OPEN;
- case CHANNEL_ERROR_AUTHENTICATION_ERROR:
- return proto::CHANNEL_ERROR_AUTHENTICATION_ERROR;
- case CHANNEL_ERROR_CONNECT_ERROR:
- return proto::CHANNEL_ERROR_CONNECT_ERROR;
- case CHANNEL_ERROR_SOCKET_ERROR:
- return proto::CHANNEL_ERROR_SOCKET_ERROR;
- case CHANNEL_ERROR_TRANSPORT_ERROR:
- return proto::CHANNEL_ERROR_TRANSPORT_ERROR;
- case CHANNEL_ERROR_INVALID_MESSAGE:
- return proto::CHANNEL_ERROR_INVALID_MESSAGE;
- case CHANNEL_ERROR_INVALID_CHANNEL_ID:
- return proto::CHANNEL_ERROR_INVALID_CHANNEL_ID;
- case CHANNEL_ERROR_CONNECT_TIMEOUT:
- return proto::CHANNEL_ERROR_CONNECT_TIMEOUT;
- case CHANNEL_ERROR_UNKNOWN:
- return proto::CHANNEL_ERROR_UNKNOWN;
- default:
- NOTREACHED();
- return proto::CHANNEL_ERROR_NONE;
- }
-}
-
-proto::ReadyState ReadyStateToProto(ReadyState state) {
- switch (state) {
- case READY_STATE_NONE:
- return proto::READY_STATE_NONE;
- case READY_STATE_CONNECTING:
- return proto::READY_STATE_CONNECTING;
- case READY_STATE_OPEN:
- return proto::READY_STATE_OPEN;
- case READY_STATE_CLOSING:
- return proto::READY_STATE_CLOSING;
- case READY_STATE_CLOSED:
- return proto::READY_STATE_CLOSED;
- default:
- NOTREACHED();
- return proto::READY_STATE_NONE;
- }
-}
-} // namespace cast_channel
-} // namespace api
-} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698