Danil Chapovalov 2b2779f3f1 Make CopyOnWriteBuffer keep capacity
for SetData and Clear functions too.

This way result of all functions is same
for shared and non-shared buffer cases

R=kwiberg@webrtc.org

Review URL: https://codereview.webrtc.org/2328553002 .

Cr-Commit-Position: refs/heads/master@{#14196}
2016-09-13 12:15:23 +00:00
..
2015-04-02 10:31:00 +00:00
2016-08-23 12:54:31 +00:00
2015-12-28 22:07:05 +00:00
2015-12-28 22:07:05 +00:00
2016-05-12 08:08:29 +00:00
2015-05-21 11:50:41 +00:00
2015-05-21 11:50:41 +00:00
2015-04-01 22:25:29 +00:00
2016-08-16 13:38:23 +00:00
2016-07-01 20:59:39 +00:00
2016-07-01 10:45:29 +00:00
2016-07-01 10:45:29 +00:00
2016-02-02 16:34:16 +00:00
2016-04-28 12:14:30 +00:00
2015-09-22 18:58:13 +00:00
2016-01-04 21:44:16 +00:00