diff options
author | cbentzel@chromium.org <cbentzel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-04 15:36:11 +0000 |
---|---|---|
committer | cbentzel@chromium.org <cbentzel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-04 15:36:11 +0000 |
commit | 2227c699c409af182b20d64fae135217d9ab6a24 (patch) | |
tree | 02181ac8440b73d460a67ce216ffef7bad85ff2c /net/http/http_byte_range.cc | |
parent | 4f5c54c25a07c7ea62af278b8a455b539273b8e1 (diff) | |
download | chromium_src-2227c699c409af182b20d64fae135217d9ab6a24.zip chromium_src-2227c699c409af182b20d64fae135217d9ab6a24.tar.gz chromium_src-2227c699c409af182b20d64fae135217d9ab6a24.tar.bz2 |
Auto-format style pass over files.
This is a refactor (actually reformat) only - no behavior change in place.
BUG=NONE
TEST=net_unittests.exe
Review URL: http://codereview.chromium.org/1800003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46349 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_byte_range.cc')
-rw-r--r-- | net/http/http_byte_range.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/net/http/http_byte_range.cc b/net/http/http_byte_range.cc index 8978d9a..60683c5 100644 --- a/net/http/http_byte_range.cc +++ b/net/http/http_byte_range.cc @@ -36,9 +36,9 @@ bool HttpByteRange::HasLastBytePosition() const { bool HttpByteRange::IsValid() const { if (suffix_length_ > 0) return true; - return first_byte_position_ >= 0 && - (last_byte_position_ == kPositionNotSpecified || - last_byte_position_ >= first_byte_position_); + return (first_byte_position_ >= 0 && + (last_byte_position_ == kPositionNotSpecified || + last_byte_position_ >= first_byte_position_)); } bool HttpByteRange::ComputeBounds(int64 size) { @@ -52,9 +52,9 @@ bool HttpByteRange::ComputeBounds(int64 size) { if (!HasFirstBytePosition() && !HasLastBytePosition() && !IsSuffixByteRange()) { - first_byte_position_ = 0; - last_byte_position_ = size - 1; - return true; + first_byte_position_ = 0; + last_byte_position_ = size - 1; + return true; } if (!IsValid()) return false; |