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

Unified Diff: extensions/renderer/guest_view/mime_handler_view/mime_handler_view_container.cc

Issue 2931393003: [Content] Update V8ValueConverter::create to return a std::unique_ptr (Closed)
Patch Set: rebase 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/guest_view/mime_handler_view/mime_handler_view_container.cc
diff --git a/extensions/renderer/guest_view/mime_handler_view/mime_handler_view_container.cc b/extensions/renderer/guest_view/mime_handler_view/mime_handler_view_container.cc
index 14d599a2d9ae022a9db5cb3bd53855ab70aa9983..22b266bef30f3e64b14d30a51d04e1ca5d1beafc 100644
--- a/extensions/renderer/guest_view/mime_handler_view/mime_handler_view_container.cc
+++ b/extensions/renderer/guest_view/mime_handler_view/mime_handler_view_container.cc
@@ -261,10 +261,8 @@ void MimeHandlerViewContainer::PostMessageFromValue(
v8::Isolate* isolate = v8::Isolate::GetCurrent();
v8::HandleScope handle_scope(isolate);
v8::Context::Scope context_scope(frame->MainWorldScriptContext());
- std::unique_ptr<content::V8ValueConverter> converter(
- content::V8ValueConverter::create());
- PostMessage(isolate,
- converter->ToV8Value(&message, frame->MainWorldScriptContext()));
+ PostMessage(isolate, content::V8ValueConverter::Create()->ToV8Value(
+ &message, frame->MainWorldScriptContext()));
}
void MimeHandlerViewContainer::OnCreateMimeHandlerViewGuestACK(
« no previous file with comments | « extensions/renderer/guest_view/guest_view_internal_custom_bindings.cc ('k') | extensions/renderer/i18n_custom_bindings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698