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

Unified Diff: components/ownership/owner_key_util_impl.cc

Issue 1461703009: Switch //components from vector_as_array to vector::data. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: eroman comment 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
« no previous file with comments | « components/ownership/owner_key_util.h ('k') | components/ownership/owner_key_util_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/ownership/owner_key_util_impl.cc
diff --git a/components/ownership/owner_key_util_impl.cc b/components/ownership/owner_key_util_impl.cc
index fdf29e9a7854ab07f2cb7816e1ee738bbdb6597f..15efd1f8ba4174ccda7b6ac8aae3f59d36382a93 100644
--- a/components/ownership/owner_key_util_impl.cc
+++ b/components/ownership/owner_key_util_impl.cc
@@ -47,8 +47,7 @@ bool OwnerKeyUtilImpl::ImportPublicKey(std::vector<uint8>* output) {
// Get the key data off of disk
int data_read =
- base::ReadFile(public_key_file_,
- reinterpret_cast<char*>(vector_as_array(output)),
+ base::ReadFile(public_key_file_, reinterpret_cast<char*>(output->data()),
safe_file_size);
return data_read == safe_file_size;
}
« no previous file with comments | « components/ownership/owner_key_util.h ('k') | components/ownership/owner_key_util_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698