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

Unified Diff: extensions/browser/updater/update_data_provider.cc

Issue 1471043004: Convert various vector_as_array calls to vector::data. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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: extensions/browser/updater/update_data_provider.cc
diff --git a/extensions/browser/updater/update_data_provider.cc b/extensions/browser/updater/update_data_provider.cc
index e0ad403d1c58a601a7494a50cafa7096e6588498..1adb8f96b22492989d336d7f95686f3c517ba9b2 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;
« no previous file with comments | « extensions/browser/api/networking_config/networking_config_service.cc ('k') | extensions/renderer/module_system.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698