Index: ui/devtools/ProtocolPlatform.h |
diff --git a/ui/devtools/ProtocolPlatform.h b/ui/devtools/ProtocolPlatform.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..13296b2157a0ef59adb398938ec188c7ebba03c6 |
--- /dev/null |
+++ b/ui/devtools/ProtocolPlatform.h |
@@ -0,0 +1,20 @@ |
+// 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_PROTOCOLPLATFORM_H_ |
+#define UI_PROTOCOLPLATFORM_H_ |
sadrul
2016/10/17 16:05:08
UI_DEVTOOLS_PROTOCOL_PLATFORM_H_
Sarmad Hashmi
2016/10/17 16:58:20
Done.
|
+ |
+#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_PROTOCOLPLATFORM_H_ |
sadrul
2016/10/17 16:05:08
newline before
Sarmad Hashmi
2016/10/17 16:58:21
Done.
|