summaryrefslogtreecommitdiffstats
path: root/extensions/renderer
diff options
context:
space:
mode:
authordavidben <davidben@chromium.org>2015-11-30 16:01:50 -0800
committerCommit bot <commit-bot@chromium.org>2015-12-01 00:02:51 +0000
commitb50f00c17dac2371146653d82acef7338f386d8c (patch)
tree16d12211ff2c57ad27f0bbc04c87e6f2832f13d2 /extensions/renderer
parent3d49a3c17c46a39da8d6d8ca1d392a4164522eb7 (diff)
downloadchromium_src-b50f00c17dac2371146653d82acef7338f386d8c.zip
chromium_src-b50f00c17dac2371146653d82acef7338f386d8c.tar.gz
chromium_src-b50f00c17dac2371146653d82acef7338f386d8c.tar.bz2
Convert various vector_as_array calls to vector::data.
This gets everything that wasn't covered by a previous CL in flight. BUG=556678 TBR=zea@chromium.org Review URL: https://codereview.chromium.org/1471043004 Cr-Commit-Position: refs/heads/master@{#362283}
Diffstat (limited to 'extensions/renderer')
-rw-r--r--extensions/renderer/module_system.cc4
-rw-r--r--extensions/renderer/module_system_test.cc3
2 files changed, 2 insertions, 5 deletions
diff --git a/extensions/renderer/module_system.cc b/extensions/renderer/module_system.cc
index 923418a..8bc983e 100644
--- a/extensions/renderer/module_system.cc
+++ b/extensions/renderer/module_system.cc
@@ -7,7 +7,6 @@
#include "base/bind.h"
#include "base/command_line.h"
#include "base/logging.h"
-#include "base/stl_util.h"
#include "base/strings/string_util.h"
#include "base/strings/stringprintf.h"
#include "base/trace_event/trace_event.h"
@@ -273,8 +272,7 @@ v8::Local<v8::Value> ModuleSystem::CallModuleMethod(
const std::string& module_name,
const std::string& method_name,
std::vector<v8::Local<v8::Value>>* args) {
- return CallModuleMethod(
- module_name, method_name, args->size(), vector_as_array(args));
+ return CallModuleMethod(module_name, method_name, args->size(), args->data());
}
v8::Local<v8::Value> ModuleSystem::CallModuleMethod(
diff --git a/extensions/renderer/module_system_test.cc b/extensions/renderer/module_system_test.cc
index 50b6416..7f697a2 100644
--- a/extensions/renderer/module_system_test.cc
+++ b/extensions/renderer/module_system_test.cc
@@ -13,7 +13,6 @@
#include "base/lazy_instance.h"
#include "base/memory/scoped_ptr.h"
#include "base/path_service.h"
-#include "base/stl_util.h"
#include "base/strings/string_piece.h"
#include "extensions/common/extension_paths.h"
#include "extensions/renderer/logging_native_handler.h"
@@ -40,7 +39,7 @@ class V8ExtensionConfigurator {
names_(1, safe_builtins_->name()),
configuration_(
new v8::ExtensionConfiguration(static_cast<int>(names_.size()),
- vector_as_array(&names_))) {
+ names_.data())) {
v8::RegisterExtension(safe_builtins_.get());
}