commit | 2805c285bf5a0b681c2ad648c0d5506aa26985d1 | [log] [tgz] |
---|---|---|
author | yhirano <yhirano@chromium.org> | Wed Aug 31 02:41:24 2016 |
committer | Commit bot <commit-bot@chromium.org> | Wed Aug 31 02:42:48 2016 |
tree | 9945e574bccdd623a7dc4dca956eb2ec71703f42 | |
parent | e9e67c7f04956745211b80a1f2996209f9aa1b7c [diff] |
Reserve Vector's capacity manually in CachedMetadata As CachedMetaData::m_serializedData is set only at the initialization timing, we can call Vector<char>::reserveCapacity to save memory consumption without loosing performance. This CL includes other cleanups: - Renaming methods, - Replacing error handling logic with DCHECKs, - Replacing unsigned with uint32_t. BUG=636462 Review-Url: https://codereview.chromium.org/2258743002 Cr-Commit-Position: refs/heads/master@{#415544}