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

Unified Diff: gin/public/context_holder.h

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/per_isolate_data.cc ('k') | gin/public/isolate_holder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gin/public/context_holder.h
diff --git a/gin/public/context_holder.h b/gin/public/context_holder.h
index 176af1754fe08c5a4cb4cfc36619f0fa8df0ae86..f0efc9b6473f89eb26694c895f4b300dc4a1f499 100644
--- a/gin/public/context_holder.h
+++ b/gin/public/context_holder.h
@@ -6,9 +6,9 @@
#define GIN_PUBLIC_CONTEXT_HOLDER_H_
#include <list>
+#include <memory>
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "gin/gin_export.h"
#include "v8/include/v8.h"
@@ -42,7 +42,7 @@ class GIN_EXPORT ContextHolder {
private:
v8::Isolate* isolate_;
v8::UniquePersistent<v8::Context> context_;
- scoped_ptr<PerContextData> data_;
+ std::unique_ptr<PerContextData> data_;
DISALLOW_COPY_AND_ASSIGN(ContextHolder);
};
« no previous file with comments | « gin/per_isolate_data.cc ('k') | gin/public/isolate_holder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698