| Index: components/webcrypto/webcrypto_impl.cc
|
| diff --git a/components/webcrypto/webcrypto_impl.cc b/components/webcrypto/webcrypto_impl.cc
|
| index 0647b77d0de226a62caf8e0cb8f1c41df626b00d..47a0237dd79aea5af01719e4cd730481709d7b18 100644
|
| --- a/components/webcrypto/webcrypto_impl.cc
|
| +++ b/components/webcrypto/webcrypto_impl.cc
|
| @@ -10,7 +10,6 @@
|
| #include "base/logging.h"
|
| #include "base/memory/scoped_ptr.h"
|
| #include "base/single_thread_task_runner.h"
|
| -#include "base/stl_util.h"
|
| #include "base/task_runner.h"
|
| #include "base/thread_task_runner_handle.h"
|
| #include "base/threading/sequenced_worker_pool.h"
|
| @@ -118,7 +117,7 @@ void CompleteWithBufferOrError(const Status& status,
|
| // theoretically this could overflow.
|
| CompleteWithError(Status::ErrorUnexpected(), result);
|
| } else {
|
| - result->completeWithBuffer(vector_as_array(&buffer),
|
| + result->completeWithBuffer(buffer.data(),
|
| static_cast<unsigned int>(buffer.size()));
|
| }
|
| }
|
| @@ -467,7 +466,7 @@ void DoExportKeyReply(scoped_ptr<ExportKeyState> state) {
|
| CompleteWithError(state->status, &state->result);
|
| } else {
|
| state->result.completeWithJson(
|
| - reinterpret_cast<const char*>(vector_as_array(&state->buffer)),
|
| + reinterpret_cast<const char*>(state->buffer.data()),
|
| static_cast<unsigned int>(state->buffer.size()));
|
| }
|
| }
|
|
|