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

Unified Diff: content/renderer/java/gin_java_bridge_value_converter.h

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_bridge_value_converter.h
diff --git a/content/renderer/java/gin_java_bridge_value_converter.h b/content/renderer/java/gin_java_bridge_value_converter.h
index 5c4ee9849a273968b498ad6dbf97f33445b3009c..2e48f199db366da89a0fea6a2f05194710b6d978 100644
--- a/content/renderer/java/gin_java_bridge_value_converter.h
+++ b/content/renderer/java/gin_java_bridge_value_converter.h
@@ -5,8 +5,9 @@
#ifndef CONTENT_RENDERER_JAVA_GIN_JAVA_BRIDGE_VALUE_CONVERTER_H_
#define CONTENT_RENDERER_JAVA_GIN_JAVA_BRIDGE_VALUE_CONVERTER_H_
+#include <memory>
+
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "content/common/content_export.h"
#include "content/public/child/v8_value_converter.h"
@@ -20,7 +21,7 @@ class GinJavaBridgeValueConverter : public content::V8ValueConverter::Strategy {
CONTENT_EXPORT v8::Local<v8::Value> ToV8Value(
const base::Value* value,
v8::Local<v8::Context> context) const;
- CONTENT_EXPORT scoped_ptr<base::Value> FromV8Value(
+ CONTENT_EXPORT std::unique_ptr<base::Value> FromV8Value(
v8::Local<v8::Value> value,
v8::Local<v8::Context> context) const;
@@ -37,7 +38,7 @@ class GinJavaBridgeValueConverter : public content::V8ValueConverter::Strategy {
bool FromV8Undefined(base::Value** out) const override;
private:
- scoped_ptr<V8ValueConverter> converter_;
+ std::unique_ptr<V8ValueConverter> converter_;
DISALLOW_COPY_AND_ASSIGN(GinJavaBridgeValueConverter);
};
« no previous file with comments | « content/renderer/java/gin_java_bridge_dispatcher.cc ('k') | content/renderer/java/gin_java_bridge_value_converter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698