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

Unified Diff: media/remoting/rpc_broker.cc

Issue 2643253003: Media Remoting Clean-up: Less-redundant naming, style consistency, etc. (Closed)
Patch Set: REBASE Created 3 years, 11 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 | « media/remoting/rpc_broker.h ('k') | media/remoting/rpc_broker_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/remoting/rpc_broker.cc
diff --git a/media/remoting/rpc/rpc_broker.cc b/media/remoting/rpc_broker.cc
similarity index 95%
rename from media/remoting/rpc/rpc_broker.cc
rename to media/remoting/rpc_broker.cc
index 1a1a5ef3c1d1302b512b19f2b675bd524a2c9dc9..2497d626b3d95516acf667e11e4449d9fb63f08e 100644
--- a/media/remoting/rpc/rpc_broker.cc
+++ b/media/remoting/rpc_broker.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "media/remoting/rpc/rpc_broker.h"
+#include "media/remoting/rpc_broker.h"
#include <utility>
@@ -42,7 +42,7 @@ std::ostream& operator<<(std::ostream& out, const pb::RpcMessage& message) {
} // namespace
RpcBroker::RpcBroker(const SendMessageCallback& send_message_cb)
- : next_handle_(kReceiverHandle + 1),
+ : next_handle_(kFirstHandle),
send_message_cb_(send_message_cb),
weak_factory_(this) {}
@@ -78,7 +78,7 @@ void RpcBroker::ProcessMessageFromRemote(
VLOG(3) << __func__ << ": " << *message;
const auto entry = receive_callbacks_.find(message->handle());
if (entry == receive_callbacks_.end()) {
- LOG(ERROR) << "unregistered handle: " << message->handle();
+ VLOG(1) << "unregistered handle: " << message->handle();
return;
}
entry->second.Run(std::move(message));
« no previous file with comments | « media/remoting/rpc_broker.h ('k') | media/remoting/rpc_broker_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698