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

Unified Diff: third_party/cacheinvalidation/overrides/google/cacheinvalidation/deps/scoped_ptr.h

Issue 1911823002: Convert //third_party from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update crashpad's README.chromium 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 | « no previous file | third_party/cld/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/cacheinvalidation/overrides/google/cacheinvalidation/deps/scoped_ptr.h
diff --git a/third_party/cacheinvalidation/overrides/google/cacheinvalidation/deps/scoped_ptr.h b/third_party/cacheinvalidation/overrides/google/cacheinvalidation/deps/scoped_ptr.h
index b849a40f6dc66874158b1824d1475788363fdd30..f242d18d9a09d00546c20b1131ca954f0ab9e757 100644
--- a/third_party/cacheinvalidation/overrides/google/cacheinvalidation/deps/scoped_ptr.h
+++ b/third_party/cacheinvalidation/overrides/google/cacheinvalidation/deps/scoped_ptr.h
@@ -5,11 +5,12 @@
#ifndef GOOGLE_CACHEINVALIDATION_DEPS_SCOPED_PTR_H_
#define GOOGLE_CACHEINVALIDATION_DEPS_SCOPED_PTR_H_
-#include "base/memory/scoped_ptr.h"
+#include <memory>
namespace invalidation {
-using ::scoped_ptr;
+template <typename T, typename D = std::default_delete<T>>
+using scoped_ptr = std::unique_ptr<T, D>;
} // namespace invalidation
« no previous file with comments | « no previous file | third_party/cld/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698