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

Unified Diff: extensions/renderer/js_extension_bindings_system.cc

Issue 2931393003: [Content] Update V8ValueConverter::create to return a std::unique_ptr (Closed)
Patch Set: Created 3 years, 6 months 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
Index: extensions/renderer/js_extension_bindings_system.cc
diff --git a/extensions/renderer/js_extension_bindings_system.cc b/extensions/renderer/js_extension_bindings_system.cc
index 45c3500c3cfa701d8bd613095346bbdee7a0289d..e0b297482098f8a0ac65e968ec850ef2d6c747b4 100644
--- a/extensions/renderer/js_extension_bindings_system.cc
+++ b/extensions/renderer/js_extension_bindings_system.cc
@@ -257,8 +257,8 @@ void JsExtensionBindingsSystem::DispatchEventInContext(
arguments.push_back(gin::StringToSymbol(context->isolate(), event_name));
{
- std::unique_ptr<content::V8ValueConverter> converter(
- content::V8ValueConverter::create());
+ std::unique_ptr<content::V8ValueConverter> converter =
+ content::V8ValueConverter::Create();
arguments.push_back(
converter->ToV8Value(event_args, context->v8_context()));
if (filtering_info && !filtering_info->empty()) {

Powered by Google App Engine
This is Rietveld 408576698