diff options
author | eroman <eroman@chromium.org> | 2015-05-26 17:09:39 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-05-27 00:10:16 +0000 |
commit | 23ba60b3b6e4e6cfa36684ddf621a6afcc6906e4 (patch) | |
tree | 8e9a0317f14438060b0e05dc7124949d63404792 /google_apis | |
parent | cf6445f354b088fb5abe6d0243d654d048b3a647 (diff) | |
download | chromium_src-23ba60b3b6e4e6cfa36684ddf621a6afcc6906e4.zip chromium_src-23ba60b3b6e4e6cfa36684ddf621a6afcc6906e4.tar.gz chromium_src-23ba60b3b6e4e6cfa36684ddf621a6afcc6906e4.tar.bz2 |
Add constructors for IOBuffer that take the buffer length as a size_t.
Once the consumers have all been updated to work with unsigned buffer lengths, I will remove the signed int versions. For now this change adds some runtime safety checks, and facilitates the ongoing conversion to size_t.
A minority of consumers were calling IOBuffer with something other than "int" or "size_t", and those were updated by this change.
BUG=488553,491315
TBR=michaeln@chromium.org,pfeldman@chromium.org,bradnelson@chromium.org, rockot@chromium.org, dimich@chromium.org
Review URL: https://codereview.chromium.org/1147333003
Cr-Commit-Position: refs/heads/master@{#331485}
Diffstat (limited to 'google_apis')
-rw-r--r-- | google_apis/gcm/base/socket_stream.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/google_apis/gcm/base/socket_stream.cc b/google_apis/gcm/base/socket_stream.cc index edf723c..48c7da8 100644 --- a/google_apis/gcm/base/socket_stream.cc +++ b/google_apis/gcm/base/socket_stream.cc @@ -15,7 +15,7 @@ namespace { // TODO(zea): consider having dynamically-sized buffers if this becomes too // expensive. -const uint32 kDefaultBufferSize = 8*1024; +const size_t kDefaultBufferSize = 8*1024; } // namespace |