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

Unified Diff: content/renderer/pepper/v8_var_converter.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
« no previous file with comments | « content/renderer/pepper/v8_var_converter.h ('k') | content/renderer/pepper/v8_var_converter_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/pepper/v8_var_converter.cc
diff --git a/content/renderer/pepper/v8_var_converter.cc b/content/renderer/pepper/v8_var_converter.cc
index eff2cabebee372abb8ee76a70533041d2f88fc08..e7f4b28dced9f35eeb28e729329c00d0e35b09fe 100644
--- a/content/renderer/pepper/v8_var_converter.cc
+++ b/content/renderer/pepper/v8_var_converter.cc
@@ -8,6 +8,7 @@
#include <stdint.h>
#include <map>
+#include <memory>
#include <stack>
#include <string>
@@ -15,7 +16,6 @@
#include "base/containers/hash_tables.h"
#include "base/location.h"
#include "base/logging.h"
-#include "base/memory/scoped_ptr.h"
#include "content/public/renderer/renderer_ppapi_host.h"
#include "content/renderer/pepper/host_array_buffer_var.h"
#include "content/renderer/pepper/host_globals.h"
@@ -240,7 +240,7 @@ bool GetOrCreateVar(v8::Local<v8::Value> val,
// 3) If the object is an array, return an ArrayVar.
// 4) If the object can be converted to a resource, return the ResourceVar.
// 5) Otherwise return a DictionaryVar.
- scoped_ptr<blink::WebArrayBuffer> web_array_buffer(
+ std::unique_ptr<blink::WebArrayBuffer> web_array_buffer(
blink::WebArrayBufferConverter::createFromV8Value(val, isolate));
if (web_array_buffer.get()) {
scoped_refptr<HostArrayBufferVar> buffer_var(
@@ -290,8 +290,9 @@ V8VarConverter::V8VarConverter(PP_Instance instance,
resource_converter_.reset(new ResourceConverterImpl(instance));
}
-V8VarConverter::V8VarConverter(PP_Instance instance,
- scoped_ptr<ResourceConverter> resource_converter)
+V8VarConverter::V8VarConverter(
+ PP_Instance instance,
+ std::unique_ptr<ResourceConverter> resource_converter)
: instance_(instance),
object_vars_allowed_(kDisallowObjectVars),
resource_converter_(resource_converter.release()) {}
« no previous file with comments | « content/renderer/pepper/v8_var_converter.h ('k') | content/renderer/pepper/v8_var_converter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698