| // Copyright 2017 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| #ifndef QUICHE_COMMON_PLATFORM_API_QUICHE_PTR_UTIL_H_ |
| #define QUICHE_COMMON_PLATFORM_API_QUICHE_PTR_UTIL_H_ |
| #include "absl/memory/memory.h" |
| #include "net/quiche/common/platform/impl/quiche_ptr_util_impl.h" |
| std::unique_ptr<T> QuicheWrapUnique(T* ptr) { |
| // TODO(b/166325009): replace this in code with absl::WrapUnique and delete |
| return absl::WrapUnique<T>(ptr); |
| #endif // QUICHE_COMMON_PLATFORM_API_QUICHE_PTR_UTIL_H_ |