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

Unified Diff: content/renderer/java/gin_java_function_invocation_helper.cc

Issue 1873783003: Convert //content/renderer from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/renderer/java/gin_java_function_invocation_helper.cc
diff --git a/content/renderer/java/gin_java_function_invocation_helper.cc b/content/renderer/java/gin_java_function_invocation_helper.cc
index 428a954fdd75cbec5aba5fb6de98935ab8fd094c..c1729e55c12408e619a0787b203d0cd5b24deeda 100644
--- a/content/renderer/java/gin_java_function_invocation_helper.cc
+++ b/content/renderer/java/gin_java_function_invocation_helper.cc
@@ -61,7 +61,7 @@ v8::Local<v8::Value> GinJavaFunctionInvocationHelper::Invoke(
v8::Local<v8::Context> context = args->isolate()->GetCurrentContext();
v8::Local<v8::Value> val;
while (args->GetNext(&val)) {
- scoped_ptr<base::Value> arg(converter_->FromV8Value(val, context));
+ std::unique_ptr<base::Value> arg(converter_->FromV8Value(val, context));
if (arg.get()) {
arguments.Append(arg.release());
} else {
@@ -71,7 +71,7 @@ v8::Local<v8::Value> GinJavaFunctionInvocationHelper::Invoke(
}
GinJavaBridgeError error;
- scoped_ptr<base::Value> result = dispatcher_->InvokeJavaMethod(
+ std::unique_ptr<base::Value> result = dispatcher_->InvokeJavaMethod(
object->object_id(), method_name_, arguments, &error);
if (!result.get()) {
args->isolate()->ThrowException(v8::Exception::Error(gin::StringToV8(
@@ -83,7 +83,7 @@ v8::Local<v8::Value> GinJavaFunctionInvocationHelper::Invoke(
args->isolate()->GetCurrentContext());
}
- scoped_ptr<const GinJavaBridgeValue> gin_value =
+ std::unique_ptr<const GinJavaBridgeValue> gin_value =
GinJavaBridgeValue::FromValue(result.get());
if (gin_value->IsType(GinJavaBridgeValue::TYPE_OBJECT_ID)) {
GinJavaBridgeObject* result = NULL;
« no previous file with comments | « content/renderer/java/gin_java_function_invocation_helper.h ('k') | content/renderer/manifest/manifest_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698