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

Unified Diff: components/ownership/owner_key_util.h

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/html_viewer/blink_platform_impl.cc ('k') | components/ownership/owner_key_util_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/ownership/owner_key_util.h
diff --git a/components/ownership/owner_key_util.h b/components/ownership/owner_key_util.h
index ae083cfc78c05e43c76310a5832da7cdb45fb33f..8cedd88c3a12807a26da19ed8821dc2d25a2f5b2 100644
--- a/components/ownership/owner_key_util.h
+++ b/components/ownership/owner_key_util.h
@@ -12,7 +12,6 @@
#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
-#include "base/stl_util.h"
#include "components/ownership/ownership_export.h"
#include "crypto/scoped_nss_types.h"
@@ -34,7 +33,7 @@ class OWNERSHIP_EXPORT PublicKey
bool is_loaded() const { return !data_.empty(); }
std::string as_string() {
- return std::string(reinterpret_cast<const char*>(vector_as_array(&data_)),
+ return std::string(reinterpret_cast<const char*>(data_.data()),
data_.size());
}
« no previous file with comments | « components/html_viewer/blink_platform_impl.cc ('k') | components/ownership/owner_key_util_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698