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

Unified Diff: chrome/renderer/extensions/platform_keys_natives.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: chrome/renderer/extensions/platform_keys_natives.cc
diff --git a/chrome/renderer/extensions/platform_keys_natives.cc b/chrome/renderer/extensions/platform_keys_natives.cc
index c0da6678c5ea80ad9d39a7dcadf598ca2ea3d3b8..97ff814c49a86a7cd68d46c3a6e520be56d78c45 100644
--- a/chrome/renderer/extensions/platform_keys_natives.cc
+++ b/chrome/renderer/extensions/platform_keys_natives.cc
@@ -125,10 +125,8 @@ void PlatformKeysNatives::NormalizeAlgorithm(
if (!algorithm_dict)
return;
- std::unique_ptr<content::V8ValueConverter> converter(
- content::V8ValueConverter::create());
- call_info.GetReturnValue().Set(
- converter->ToV8Value(algorithm_dict.get(), context()->v8_context()));
+ call_info.GetReturnValue().Set(content::V8ValueConverter::Create()->ToV8Value(
+ algorithm_dict.get(), context()->v8_context()));
}
} // namespace extensions
« no previous file with comments | « chrome/renderer/extensions/cast_streaming_native_handler.cc ('k') | chrome/renderer/sandbox_status_extension_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698