summaryrefslogtreecommitdiffstats
path: root/extensions/browser/updater
diff options
context:
space:
mode:
authordavidben <davidben@chromium.org>2015-11-30 16:01:50 -0800
committerCommit bot <commit-bot@chromium.org>2015-12-01 00:02:51 +0000
commitb50f00c17dac2371146653d82acef7338f386d8c (patch)
tree16d12211ff2c57ad27f0bbc04c87e6f2832f13d2 /extensions/browser/updater
parent3d49a3c17c46a39da8d6d8ca1d392a4164522eb7 (diff)
downloadchromium_src-b50f00c17dac2371146653d82acef7338f386d8c.zip
chromium_src-b50f00c17dac2371146653d82acef7338f386d8c.tar.gz
chromium_src-b50f00c17dac2371146653d82acef7338f386d8c.tar.bz2
Convert various vector_as_array calls to vector::data.
This gets everything that wasn't covered by a previous CL in flight. BUG=556678 TBR=zea@chromium.org Review URL: https://codereview.chromium.org/1471043004 Cr-Commit-Position: refs/heads/master@{#362283}
Diffstat (limited to 'extensions/browser/updater')
-rw-r--r--extensions/browser/updater/update_data_provider.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/extensions/browser/updater/update_data_provider.cc b/extensions/browser/updater/update_data_provider.cc
index e0ad403..1adb8f9 100644
--- a/extensions/browser/updater/update_data_provider.cc
+++ b/extensions/browser/updater/update_data_provider.cc
@@ -8,7 +8,6 @@
#include "base/bind.h"
#include "base/files/file_path.h"
#include "base/files/file_util.h"
-#include "base/stl_util.h"
#include "base/strings/string_util.h"
#include "components/update_client/update_client.h"
#include "content/public/browser/browser_thread.h"
@@ -46,7 +45,7 @@ void UpdateDataProvider::GetData(
std::string pubkey_bytes;
base::Base64Decode(extension->public_key(), &pubkey_bytes);
info->pk_hash.resize(crypto::kSHA256Length, 0);
- crypto::SHA256HashString(pubkey_bytes, vector_as_array(&info->pk_hash),
+ crypto::SHA256HashString(pubkey_bytes, info->pk_hash.data(),
info->pk_hash.size());
info->version = *extension->version();
info->allow_background_download = false;