Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3305)

Unified Diff: chrome/browser/media/webrtc_rtp_dump_writer.cc

Issue 1452853002: Convert vector_as_array to vector::data in //chrome{,cast,os}. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@vector-data
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/media/webrtc_rtp_dump_writer.cc
diff --git a/chrome/browser/media/webrtc_rtp_dump_writer.cc b/chrome/browser/media/webrtc_rtp_dump_writer.cc
index e397da03cfd8b674691e072703db151724866260..7770a64dd6da3e69e3d2351dc6d98c1e4d6032e9 100644
--- a/chrome/browser/media/webrtc_rtp_dump_writer.cc
+++ b/chrome/browser/media/webrtc_rtp_dump_writer.cc
@@ -7,7 +7,6 @@
#include "base/big_endian.h"
#include "base/files/file_util.h"
#include "base/logging.h"
-#include "base/stl_util.h"
#include "content/public/browser/browser_thread.h"
#include "third_party/zlib/zlib.h"
@@ -167,9 +166,8 @@ class WebRtcRtpDumpWriter::FileThreadWorker {
if (base::PathExists(dump_path_)) {
bytes_written =
- base::AppendToFile(dump_path_,
- reinterpret_cast<const char*>(
- vector_as_array(&compressed_buffer)),
+ base::AppendToFile(dump_path_, reinterpret_cast<const char*>(
+ compressed_buffer.data()),
compressed_buffer.size())
? compressed_buffer.size()
: -1;
@@ -237,10 +235,9 @@ class WebRtcRtpDumpWriter::FileThreadWorker {
memset(&stream_, 0, sizeof(z_stream));
DCHECK(!output_buffer.empty());
- return base::AppendToFile(dump_path_,
- reinterpret_cast<const char*>(
- vector_as_array(&output_buffer)),
- output_buffer.size());
+ return base::AppendToFile(
+ dump_path_, reinterpret_cast<const char*>(output_buffer.data()),
+ output_buffer.size());
}
const base::FilePath dump_path_;

Powered by Google App Engine
This is Rietveld 408576698