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

Unified Diff: tools/json_schema_compiler/util.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
« no previous file with comments | « tools/json_schema_compiler/cc_generator.py ('k') | ui/ozone/platform/drm/gpu/drm_device.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/json_schema_compiler/util.cc
diff --git a/tools/json_schema_compiler/util.cc b/tools/json_schema_compiler/util.cc
index b7c4eccae1441b2bf585c9ad9f567440bf776988..e870c78ba4cef6d41effd62717cb71c8f2f44595 100644
--- a/tools/json_schema_compiler/util.cc
+++ b/tools/json_schema_compiler/util.cc
@@ -4,7 +4,6 @@
#include "tools/json_schema_compiler/util.h"
-#include "base/stl_util.h"
#include "base/strings/utf_string_conversions.h"
#include "base/values.h"
@@ -155,8 +154,8 @@ void AddItemToList(const std::string& from, base::ListValue* out) {
}
void AddItemToList(const std::vector<char>& from, base::ListValue* out) {
- out->Append(base::BinaryValue::CreateWithCopiedBuffer(vector_as_array(&from),
- from.size()));
+ out->Append(
+ base::BinaryValue::CreateWithCopiedBuffer(from.data(), from.size()));
}
void AddItemToList(const linked_ptr<base::Value>& from, base::ListValue* out) {
« no previous file with comments | « tools/json_schema_compiler/cc_generator.py ('k') | ui/ozone/platform/drm/gpu/drm_device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698