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

Unified Diff: content/browser/android/java/gin_java_method_invocation_helper.h

Issue 1874893002: Convert //content/browser 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/browser/android/java/gin_java_method_invocation_helper.h
diff --git a/content/browser/android/java/gin_java_method_invocation_helper.h b/content/browser/android/java/gin_java_method_invocation_helper.h
index b61fdfd68ebfd9bfc4334983ad7cf2d22513b6d6..b2c0992eaa4d17ef315f6bbe42d580cf6ae89a6f 100644
--- a/content/browser/android/java/gin_java_method_invocation_helper.h
+++ b/content/browser/android/java/gin_java_method_invocation_helper.h
@@ -55,7 +55,7 @@ class CONTENT_EXPORT GinJavaMethodInvocationHelper
DISALLOW_COPY_AND_ASSIGN(ObjectDelegate);
};
- GinJavaMethodInvocationHelper(scoped_ptr<ObjectDelegate> object,
+ GinJavaMethodInvocationHelper(std::unique_ptr<ObjectDelegate> object,
const std::string& method_name,
const base::ListValue& arguments);
void Init(DispatcherDelegate* dispatcher);
@@ -94,12 +94,12 @@ class CONTENT_EXPORT GinJavaMethodInvocationHelper
typedef std::map<GinJavaBoundObject::ObjectID,
JavaObjectWeakGlobalRef> ObjectRefs;
- scoped_ptr<ObjectDelegate> object_;
+ std::unique_ptr<ObjectDelegate> object_;
const std::string method_name_;
- scoped_ptr<base::ListValue> arguments_;
+ std::unique_ptr<base::ListValue> arguments_;
ObjectRefs object_refs_;
bool holds_primitive_result_;
- scoped_ptr<base::ListValue> primitive_result_;
+ std::unique_ptr<base::ListValue> primitive_result_;
GinJavaBridgeError invocation_error_;
base::android::ScopedJavaGlobalRef<jobject> object_result_;
base::android::ScopedJavaGlobalRef<jclass> safe_annotation_clazz_;

Powered by Google App Engine
This is Rietveld 408576698