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

Unified Diff: cc/resources/single_release_callback_impl.h

Issue 1866203004: Convert //cc from scoped_ptr to std::unique_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: scopedptrcc: rebase 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 | « cc/resources/single_release_callback.h ('k') | cc/resources/ui_resource_bitmap.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/single_release_callback_impl.h
diff --git a/cc/resources/single_release_callback_impl.h b/cc/resources/single_release_callback_impl.h
index 50c0210bddd4f33154adf38838c5a7c0a0885b87..eafcb1f85e053f1f21cdfe1c0d3b6544a31925ef 100644
--- a/cc/resources/single_release_callback_impl.h
+++ b/cc/resources/single_release_callback_impl.h
@@ -5,7 +5,9 @@
#ifndef CC_RESOURCES_SINGLE_RELEASE_CALLBACK_IMPL_H_
#define CC_RESOURCES_SINGLE_RELEASE_CALLBACK_IMPL_H_
-#include "base/memory/scoped_ptr.h"
+#include <memory>
+
+#include "base/memory/ptr_util.h"
#include "cc/base/cc_export.h"
#include "cc/resources/release_callback_impl.h"
@@ -13,9 +15,9 @@ namespace cc {
class CC_EXPORT SingleReleaseCallbackImpl {
public:
- static scoped_ptr<SingleReleaseCallbackImpl> Create(
+ static std::unique_ptr<SingleReleaseCallbackImpl> Create(
const ReleaseCallbackImpl& cb) {
- return make_scoped_ptr(new SingleReleaseCallbackImpl(cb));
+ return base::WrapUnique(new SingleReleaseCallbackImpl(cb));
}
~SingleReleaseCallbackImpl();
« no previous file with comments | « cc/resources/single_release_callback.h ('k') | cc/resources/ui_resource_bitmap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698