Index: extensions/renderer/dispatcher.cc |
diff --git a/extensions/renderer/dispatcher.cc b/extensions/renderer/dispatcher.cc |
index 422c0aeed949defc7e3d78c9e362369afa03ac0e..2653c48e1675de12dbc6c33d6e49eaf5f999644b 100644 |
--- a/extensions/renderer/dispatcher.cc |
+++ b/extensions/renderer/dispatcher.cc |
@@ -172,9 +172,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( |