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

Unified Diff: gin/v8_initializer.cc

Issue 1848423002: Convert //gin to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 | « gin/test/v8_test.h ('k') | gin/v8_isolate_memory_dump_provider_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gin/v8_initializer.cc
diff --git a/gin/v8_initializer.cc b/gin/v8_initializer.cc
index bb319513455c42856b8751752a9cd9d652fcec4b..117723eac99ca20729fe7d572f94ea711eca7c67 100644
--- a/gin/v8_initializer.cc
+++ b/gin/v8_initializer.cc
@@ -7,13 +7,14 @@
#include <stddef.h>
#include <stdint.h>
+#include <memory>
+
#include "base/debug/alias.h"
#include "base/files/file.h"
#include "base/files/file_path.h"
#include "base/files/memory_mapped_file.h"
#include "base/lazy_instance.h"
#include "base/logging.h"
-#include "base/memory/scoped_ptr.h"
#include "base/metrics/histogram.h"
#include "base/rand_util.h"
#include "base/strings/sys_string_conversions.h"
@@ -111,7 +112,8 @@ static bool MapV8File(base::PlatformFile platform_file,
base::MemoryMappedFile::Region region,
base::MemoryMappedFile** mmapped_file_out) {
DCHECK(*mmapped_file_out == NULL);
- scoped_ptr<base::MemoryMappedFile> mmapped_file(new base::MemoryMappedFile());
+ std::unique_ptr<base::MemoryMappedFile> mmapped_file(
+ new base::MemoryMappedFile());
if (mmapped_file->Initialize(base::File(platform_file), region)) {
*mmapped_file_out = mmapped_file.release();
return true;
« no previous file with comments | « gin/test/v8_test.h ('k') | gin/v8_isolate_memory_dump_provider_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698