rtc::Buffer: Restore length method for backwards compatibility
TBR=tommi@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/43939004
Cr-Commit-Position: refs/heads/master@{#8845}
git-svn-id: http://webrtc.googlecode.com/svn/trunk@8845 4adac7df-926f-26a2-2b94-8c16560cd09d
diff --git a/webrtc/base/buffer.h b/webrtc/base/buffer.h
index c7fb959..07345a9 100644
--- a/webrtc/base/buffer.h
+++ b/webrtc/base/buffer.h
@@ -34,6 +34,10 @@
size_t size() const { return size_; }
size_t capacity() const { return capacity_; }
+ // For backwards compatibility. TODO(kwiberg): Remove once Chromium doesn't
+ // need it anymore.
+ size_t length() const { return size(); }
+
Buffer& operator=(const Buffer& buf) {
if (&buf != this) {
Construct(buf.data(), buf.size(), buf.size());