Index: extensions/renderer/dispatcher.cc |
diff --git a/extensions/renderer/dispatcher.cc b/extensions/renderer/dispatcher.cc |
index ab770ca4cacf170aa6d43859338bea7e45ac4d82..695e7f5a98088740828503fb1647e170b2e48ab3 100644 |
--- a/extensions/renderer/dispatcher.cc |
+++ b/extensions/renderer/dispatcher.cc |
@@ -175,9 +175,8 @@ void CallModuleMethod(const std::string& module_name, |
content::V8ValueConverter::create()); |
std::vector<v8::Local<v8::Value>> arguments; |
- for (base::ListValue::const_iterator it = args->begin(); it != args->end(); |
- ++it) { |
- arguments.push_back(converter->ToV8Value(*it, context->v8_context())); |
+ for (const auto& arg : *args) { |
+ arguments.push_back(converter->ToV8Value(arg.get(), context->v8_context())); |
} |
context->module_system()->CallModuleMethod( |