Index: net/spdy/spdy_io_buffer.h |
diff --git a/net/spdy/spdy_io_buffer.h b/net/spdy/spdy_io_buffer.h |
index e96c946df4788a9087336d34c304a05156c75c4a..1b69933f323b014b95a3ce4df75542b37340f0f4 100644 |
--- a/net/spdy/spdy_io_buffer.h |
+++ b/net/spdy/spdy_io_buffer.h |
@@ -22,8 +22,7 @@ class NET_EXPORT_PRIVATE SpdyIOBuffer { |
// Constructor |
// |buffer| is the actual data buffer. |
// |size| is the size of the data buffer. |
- // |priority| is the priority of this buffer. Lower numbers are higher |
- // priority. |
+ // |priority| is the priority of this buffer. |
// |stream| is a pointer to the stream which is managing this buffer. |
SpdyIOBuffer(IOBuffer* buffer, int size, int priority, SpdyStream* stream); |
Ryan Hamilton
2012/04/23 22:51:05
Can you make |priority| a RequestPriority? It loo
szym
2012/04/24 00:19:31
I considered that. The only doubt was caused by th
Ryan Hamilton
2012/04/24 00:42:11
Hm. I think I would be inclined to change the cla
szym
2012/04/24 00:47:58
Yup. I'm on it.
|
SpdyIOBuffer(); |
@@ -39,7 +38,7 @@ class NET_EXPORT_PRIVATE SpdyIOBuffer { |
// Comparison operator to support sorting. |
bool operator<(const SpdyIOBuffer& other) const { |
if (priority_ != other.priority_) |
- return priority_ > other.priority_; |
+ return priority_ < other.priority_; |
return position_ > other.position_; |
} |