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

Unified Diff: chrome/browser/extensions/api/cast_channel/cast_socket.h

Issue 408633002: Fix error handling for message parse errors that occur during connection setup. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed superfluous size check Created 6 years, 5 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: chrome/browser/extensions/api/cast_channel/cast_socket.h
diff --git a/chrome/browser/extensions/api/cast_channel/cast_socket.h b/chrome/browser/extensions/api/cast_channel/cast_socket.h
index dba56d7196f75314ba0a6c59b4f4db566a787a12..45383cdf879da4adc2707dd6a9ed31cceec4a35a 100644
--- a/chrome/browser/extensions/api/cast_channel/cast_socket.h
+++ b/chrome/browser/extensions/api/cast_channel/cast_socket.h
@@ -123,7 +123,7 @@ class CastSocket : public ApiResource,
struct MessageHeader {
MessageHeader();
// Sets the message size.
- void SetMessageSize(size_t message_size);
+ bool SetMessageSize(size_t message_size);
Wez 2014/07/24 00:55:55 This no longer needs the Boolean return. :)
// Prepends this header to |str|.
void PrependToString(std::string* str);
// Reads |header| from the beginning of |buffer|.

Powered by Google App Engine
This is Rietveld 408576698