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

Unified Diff: extensions/renderer/test_features_native_handler.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/test_features_native_handler.cc
diff --git a/extensions/renderer/test_features_native_handler.cc b/extensions/renderer/test_features_native_handler.cc
index 45c02446755a57d2fb7842544df5acb51c6c5a58..6e25f0a988aa306a61cec80d0875293768638c75 100644
--- a/extensions/renderer/test_features_native_handler.cc
+++ b/extensions/renderer/test_features_native_handler.cc
@@ -23,10 +23,8 @@ void TestFeaturesNativeHandler::GetAPIFeatures(
const v8::FunctionCallbackInfo<v8::Value>& args) {
std::unique_ptr<JSONFeatureProviderSource> source(
ExtensionsClient::Get()->CreateAPIFeatureSource());
- std::unique_ptr<content::V8ValueConverter> converter(
- content::V8ValueConverter::create());
- args.GetReturnValue().Set(
- converter->ToV8Value(&source->dictionary(), context()->v8_context()));
+ args.GetReturnValue().Set(content::V8ValueConverter::Create()->ToV8Value(
+ &source->dictionary(), context()->v8_context()));
}
} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698