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

Unified Diff: components/policy/core/common/schema.cc

Issue 1441543002: Make vector_as_array use std::vector::data and switch a few directories. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mark 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/policy/core/common/preg_parser_win.cc ('k') | crypto/hmac_openssl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/policy/core/common/schema.cc
diff --git a/components/policy/core/common/schema.cc b/components/policy/core/common/schema.cc
index 1aa199ba36fb53c6af9e20a546c66717c478af78..d842773e8e4a354e737689cb3ac104ef46b5d4c2 100644
--- a/components/policy/core/common/schema.cc
+++ b/components/policy/core/common/schema.cc
@@ -330,12 +330,12 @@ Schema::InternalStorage::ParseSchema(const base::DictionaryValue& schema,
return NULL;
SchemaData* data = &storage->schema_data_;
- data->schema_nodes = vector_as_array(&storage->schema_nodes_);
- data->property_nodes = vector_as_array(&storage->property_nodes_);
- data->properties_nodes = vector_as_array(&storage->properties_nodes_);
- data->restriction_nodes = vector_as_array(&storage->restriction_nodes_);
- data->int_enums = vector_as_array(&storage->int_enums_);
- data->string_enums = vector_as_array(&storage->string_enums_);
+ data->schema_nodes = storage->schema_nodes_.data();
+ data->property_nodes = storage->property_nodes_.data();
+ data->properties_nodes = storage->properties_nodes_.data();
+ data->restriction_nodes = storage->restriction_nodes_.data();
+ data->int_enums = storage->int_enums_.data();
+ data->string_enums = storage->string_enums_.data();
return storage;
}
« no previous file with comments | « components/policy/core/common/preg_parser_win.cc ('k') | crypto/hmac_openssl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698