Index: ui/devtools/protocol_platform.h |
diff --git a/ui/devtools/protocol_platform.h b/ui/devtools/protocol_platform.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..82aa61b6e596015f0835a4025a59d8bf9730b1f8 |
--- /dev/null |
+++ b/ui/devtools/protocol_platform.h |
@@ -0,0 +1,21 @@ |
+// Copyright 2016 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 UI_DEVTOOLS_PROTOCOL_PLATFORM_H_ |
+#define UI_DEVTOOLS_PROTOCOL_PLATFORM_H_ |
+ |
+#include "base/memory/ptr_util.h" |
+ |
+namespace ui { |
+namespace devtools { |
+ |
+template <typename T> |
+std::unique_ptr<T> wrapUnique(T* ptr) { |
+ return base::WrapUnique<T>(ptr); |
+} |
+ |
+} // namespace devtools |
+} // namespace ui |
+ |
+#endif // UI_DEVTOOLS_PROTOCOL_PLATFORM_H_ |