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

Unified Diff: content/child/v8_value_converter_impl.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: content/child/v8_value_converter_impl.cc
diff --git a/content/child/v8_value_converter_impl.cc b/content/child/v8_value_converter_impl.cc
index 89b3fc79c78abffc275a636ba54c14a6a8160d30..a786dc26be049c7a93c855d2fd9304050ae205d5 100644
--- a/content/child/v8_value_converter_impl.cc
+++ b/content/child/v8_value_converter_impl.cc
@@ -175,8 +175,8 @@ class V8ValueConverterImpl::ScopedUniquenessGuard {
DISALLOW_COPY_AND_ASSIGN(ScopedUniquenessGuard);
};
-V8ValueConverter* V8ValueConverter::create() {
- return new V8ValueConverterImpl();
+std::unique_ptr<V8ValueConverter> V8ValueConverter::Create() {
+ return base::MakeUnique<V8ValueConverterImpl>();
}
V8ValueConverterImpl::V8ValueConverterImpl()
« no previous file with comments | « components/plugins/renderer/loadable_plugin_placeholder.cc ('k') | content/public/child/v8_value_converter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698