Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef UI_PROTOCOL_PLATFORM_H_ | |
| 6 #define UI_PROTOCOL_PLATFORM_H_ | |
|
sadrul
2016/10/17 17:44:36
UI_DEVTOOLS_PROTOCOL_PLATFORM_H_
Sarmad Hashmi
2016/10/17 19:15:29
Done.
| |
| 7 | |
| 8 #include "base/memory/ptr_util.h" | |
| 9 | |
| 10 namespace ui { | |
| 11 namespace devtools { | |
| 12 | |
| 13 template <typename T> | |
| 14 std::unique_ptr<T> wrapUnique(T* ptr) { | |
| 15 return base::WrapUnique<T>(ptr); | |
| 16 } | |
| 17 | |
| 18 } // namespace devtools | |
| 19 } // namespace ui | |
| 20 | |
| 21 #endif // UI_PROTOCOL_PLATFORM_H_ | |
| OLD | NEW |